Handle for a child window?
-
How do I get the handle for a child window from a MDI in C#.Net? Getting the handle to the Mainframe window is quite easy, but I'm having some problems retrieving the handle from one of many child windows? So, if I have several child windows open in a parent window, how do I get the handle of only one child window? Any help will be appreciated. Thanks!
-
How do I get the handle for a child window from a MDI in C#.Net? Getting the handle to the Mainframe window is quite easy, but I'm having some problems retrieving the handle from one of many child windows? So, if I have several child windows open in a parent window, how do I get the handle of only one child window? Any help will be appreciated. Thanks!
the
Controls
collection brings access to children.Controls.item[i].Handle
is the window handle of the ith children. -
How do I get the handle for a child window from a MDI in C#.Net? Getting the handle to the Mainframe window is quite easy, but I'm having some problems retrieving the handle from one of many child windows? So, if I have several child windows open in a parent window, how do I get the handle of only one child window? Any help will be appreciated. Thanks!
I had code where I needed to iterate through my children looking for replicated data being displayed between the child displays.
public void mdiParent\_childLoadComplete(object sender, LoadCompleteEventArgs senderArgs) { System.Windows.Forms.Form\[\] formArray = this.MdiChildren; int color = formArray.Length - 1; if (color < 1) return; editView newForm = new editView(); // first : locate the form just built foreach (editView children in formArray) { if (children.Text == senderArgs.delegateIdentifier) { newForm = children; break; } }
_____________________________________________ The world is a dangerous place.
Not because of those that do evil,
but because of those who look on and do nothing.