I need to use the hwnd of a picture because of a hover detecting function. My problem is that the forms2 image boxes don't have any. But hasn't every object got it's own id? How can I still retrieve it? Please help me :(
Printable View
I need to use the hwnd of a picture because of a hover detecting function. My problem is that the forms2 image boxes don't have any. But hasn't every object got it's own id? How can I still retrieve it? Please help me :(
Wait, I see, it's a window handle, so I would have to use pictureboxes instead and can put in some additional hours of work. :mad:
Image's do not have a handle; they are drawn directly on to the Form's DC.
All windows have handles; graphical devices do not, they only have a DC. If an object has a hWnd you can create a device context with the api CreateDC. The reverse is not true.
:)