how to take photos directly from camera on form (1 Viewer)

jai kushwaha

Registered User.
Local time
Tomorrow, 02:26
Joined
Nov 1, 2015
Messages
61
Hello friends I made a form on which I made a field of picture. When i click on it, it open the place from where you can choose photograph to add. But I want that when I click on box it will open my laptops webcam and i can directly take a pgotograph from my webcam.


If anyone know about it or can make a programme plzzz help.

Thanks in advanced
 

Ranman256

Well-known member
Local time
Today, 16:56
Joined
Apr 9, 2015
Messages
4,337
we'd need to know the camera used.
then theres an ocx or some ActiveX driver to load into the code. (must know the name)
THEN the form could grab a photo and store it in the field.
 

jai kushwaha

Registered User.
Local time
Tomorrow, 02:26
Joined
Nov 1, 2015
Messages
61
Hp laptops inbuilt cam..
 

Ranman256

Well-known member
Local time
Today, 16:56
Joined
Apr 9, 2015
Messages
4,337
then you need to look at the manufacturer,
if there is an OCX in the system folder, add it to the form via
form design,
control toolbar, click ActiveX controls
add the camera.ocx
place the control on the form.
this should give camera control

or if there is no ocx.,
in vbe, tools, references,
add the Camera reference.
build code to use this reference.
 

Users who are viewing this thread

Top Bottom