M
MultiMarine
Hello
I have just started using .NET and C# from a c++ background using
win32. Now i want to do something that i used to do, without using the
win32 API.
I use Spy++ to get a HWND from another application in hex form from a
RICHEDIT control.
now i want to turn this hex value (HWND) into a control in C#.
Why doesn't this work?
IntPtr ptr = new IntPtr(0x00020A92);
Control control = System.Windows.Forms.Control.FromChildHandle(ptr);
Is there some other way to do this?? i don't wanna use the win32 API!
Thanks in advance!
I have just started using .NET and C# from a c++ background using
win32. Now i want to do something that i used to do, without using the
win32 API.
I use Spy++ to get a HWND from another application in hex form from a
RICHEDIT control.
now i want to turn this hex value (HWND) into a control in C#.
Why doesn't this work?
IntPtr ptr = new IntPtr(0x00020A92);
Control control = System.Windows.Forms.Control.FromChildHandle(ptr);
Is there some other way to do this?? i don't wanna use the win32 API!
Thanks in advance!