Firstly: I am making a program that will, hopefully, insert a panel into a running instance of notepad. This is possible by the following scenario
MyControl.Parent = Control
now my dillema is that i can get the handle of a running instance of notepad... but that doesn't do me any good since this scenario raises a compiler error
MyControl.Parent = FindWindow(null, "Untitled - Notepad"); //FindWindow returns the handle
Anybody know the soloution?
Getting a control from a handle
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Yousef27 pointsPosted Apr 14, 2007, 6:26 PM EDT
http://www.mycsharpcorner.com/Post.aspx?postID=32
It describes how to get another process's main window in C#, even close it if needed. I think it might help you out.
1 short reply
No I Wi ll Not Tell6 pointsPosted Apr 9, 2007, 3:33 PM EDT
Somebody please answer!!!