T
T Waldren
How do you pass a click event from a MDI Parent to a Child form (in C#)?
For instance, I have a Parent MDI form that contains the code below. On the
click event that activates this code, I want it to add another tabpage to a
MDI Child form. I know I cannot jut make it ChildName.tabControlSearch.etc,
that gives you an error due to the level of protection (or is that what I
need to change?).
string title = "TabPage " + (tabControlSearch.TabCount + 1).ToString();
TabPage myTabPage = new TabPage(title);
tabControlSearch.TabPages.Add(myTabPage);
Thanks,
T. Waldren
For instance, I have a Parent MDI form that contains the code below. On the
click event that activates this code, I want it to add another tabpage to a
MDI Child form. I know I cannot jut make it ChildName.tabControlSearch.etc,
that gives you an error due to the level of protection (or is that what I
need to change?).
string title = "TabPage " + (tabControlSearch.TabCount + 1).ToString();
TabPage myTabPage = new TabPage(title);
tabControlSearch.TabPages.Add(myTabPage);
Thanks,
T. Waldren