I need to navigate a webbrowser thats on the activemdichild. I have successfully used
Code:
Dim child as form1 = trycast(form1,activemdichild)
child.webbrowser.navigate(combobox.text)
in
vb.net 2005 and in c# 2005
Code:
Form activeChildForm = this.ActiveMdiChild;
if (activeChildForm != null)
{
WebBrowser activewebbrowser = (WebBrowser)activeChildForm.ActiveControl;
if (activewebbrowser != null)
activewebbrowser.Navigate(toolStripComboBox1.Text);
}
But I dont know how to do this in vc++ 2005. Please help