How Do You Get the Handle of a Control in VB.Net 3.0? -


I have to handle a control in the form of an interrupt to pass a screen capture class in vb.Net 3.0. Tried it but get an invalid handle exception.

  IntPtr = Runtime as Inter HwnAid.Interop Services. GCandDale. AOLOK (canvasmap)  

Any help would be greatly appreciated.

Thanks

There is no 3.0 version of VBnet. Are you sending the VBnet version instead of VS 2008? If so, then the VB.Net version is actually 9.0. They did not reset the version number while switching from VB 6, they just kept incremental.

Is this a WinForms project? If so, you can only use canvasmap to access control access. Note that this property will not be valid until it is actually displayed, but it is true for most scenarios

edit OP has mentioned this That this is a WPF application

I'm not sure that you can do it for any control in a WPF application. It is possible to operate the window instance using WindowInteropHelper in WPF () but this will not work for normal control examples.

Why do you need to handle? Will this work for window-related handle?


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -