Click here to Skip to main content
15,889,830 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
Basically I need to insert a webcam into a mainform without it upsetting the code I have originally put in it(It's in VB).

More Detail:
My mainform has a textbox which displays realtime readings from a usb loadcell.

I have found solutions for webcams online but my problem is i don't know how to add the webcam code to the form without it upsetting the code for the loadcell!

Is there an easier or better way of doing this?
I would need to have the webcam IN the form!

Thanks, james.
Posted
Updated 7-Apr-11 6:54am
v2

 
Share this answer
 
Comments
Jamesdf 7-Apr-11 12:52pm    
Thanks very much, good link:) but I probably should have mentioned i'm doing it in vb
Not a solution, but I am now opening the webcam as an external program from my main form.

Basically I published and installed the webcam program and call it using a button with the following code:

Private Sub cbActivateCamera_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
        System.Diagnostics.Process.Start("C:\ ---enter program destination to its exe file-- ")
    End Sub


The following code closes the external program using the Close button:

Private Sub cbCloseCamera_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
        Dim pProcess() As Process = System.Diagnostics.Process.GetProcessesByName(" --program name--- ")
        For Each p As Process In pProcess
            p.Kill()
        Next
    End Sub


Again this is not a solution to my problem rather a temporary fix so i'm still open to all suggestions or ideas.

Thanks,
James.
 
Share this answer
 
i'l suggest to use EmguCV........
Quote:

[^]


[^]


[^]



refer these articles
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900