VBA. Changing the camera screen position

gmsoft

New member
Local time
Today, 15:08
Joined
Nov 23, 2011
Messages
2
I'm developing a VBA/Access 2003 application that needs to open one camera (example webcam) in a desktop position (shell).

What i can't do is to change the location that the window of the camera opens (or open it as full screen for example). Or to change the dimensions of the window the camera opens.

ANY ideas or help is much appreciated.

Thanks
 
I this an Access window ?
if it is, you can use the InsideHeight/InsideWidth to set the form's size
 
No it is not a access window (form).

It is a window opened from the webcam software that i call.

Thanks
 
If you are launching this program via the Shell command you will need to use API's to move the window, try FindWindow to get the window handle, and MoveWindow to move and resize it.
 
Couple of thoughts:

1) If you want to control this external program from Access / VBA, then the program needs to have some sort of SDK intended to expose automation of the software. You would use that to, for example, send OLE Automation commands to the program, or DDE commands... depends on what the software developer provided as capabilities to automate control of their software.

2) If you want to embed the webcam in an Access form, then the software would need to publish an OCX control available for other programs (Access in this case) to embed. You might look through the list of controls available to embed on the system which has the web cam software installed on it.
 

Users who are viewing this thread

Back
Top Bottom