The type of a picture box handle is IntPtr. Firstly what does 'Ptr' stand for?
How do i convert this to an int?
I have tried picCamA.Handle.ToInt32 but the SendMessage API wants an int, not an Int32.
Printable View
The type of a picture box handle is IntPtr. Firstly what does 'Ptr' stand for?
How do i convert this to an int?
I have tried picCamA.Handle.ToInt32 but the SendMessage API wants an int, not an Int32.
I think you should change the declaration of SendMEssage API to use IntPtr rather than int. This is how it should work in .NET
Just as Shuja Ali says. Any API function that wants a handle should have the argument declared as IntPtr. From the help:Quote:
A platform-specific type that is used to represent a pointer or a handle.