ethicalhacker
Well-known member
I need to access theactivemdi child in an mdi application the active mdi child has a webbrowser control on t that I need to navigate
dim child as form1 = TryCast(form1,activemdichild)
Form activeChildForm = this.ActiveMdiChild;
if (activeChildForm != null)
{
WebBrowser activewebbrowser = (WebBrowser)activeChildForm.ActiveControl;
if (activewebbrowser != null)
activewebbrowser.Navigate(toolStripComboBox1.Text);
}
Form^ activeChildForm = this->ActiveMdiChild;
WebBrowser^ activewebbrowser = (WebBrowser^)activeChildForm->ActiveControl;
activewebbrowser->Navigate(toolStripComboBox1->Text);