G Guest Mar 8, 2006 #1 Is there any way to obtain a reference to a control instance if i have a handle to that control?
T Tim Wilson Mar 8, 2006 #2 You can use the static FromHandle method of the Control class. http://msdn.microsoft.com/library/d...emwindowsformscontrolclassfromhandletopic.asp
You can use the static FromHandle method of the Control class. http://msdn.microsoft.com/library/d...emwindowsformscontrolclassfromhandletopic.asp
N Nick Hounsome Mar 8, 2006 #3 Tim Wilson said: You can use the static FromHandle method of the Control class. http://msdn.microsoft.com/library/d...emwindowsformscontrolclassfromhandletopic.asp Click to expand... Just stating the obvious: It must be a control in your app.
Tim Wilson said: You can use the static FromHandle method of the Control class. http://msdn.microsoft.com/library/d...emwindowsformscontrolclassfromhandletopic.asp Click to expand... Just stating the obvious: It must be a control in your app.
S Stoitcho Goutsev \(100\) Mar 8, 2006 #4 John, As Nick pointed out it has to be a control in your application. If you are looking at subclassing a window you can use NativeWindow class.
John, As Nick pointed out it has to be a control in your application. If you are looking at subclassing a window you can use NativeWindow class.