I made a web browser in C# Windows forms, and I made form 3 to be the history, form 3 contains listbox and a button called go!
I want button_click to navigate the webbrowser1 (located in form1) to listbox1.selecteditem.tostring()
.
In form1 constructor:
public Form1()
{
x = new Form3();
x.Show();
x.Visible = false;
InitializeComponent();
}
and in the button that open the form 3
{
x.Visible = true;
}
in form 3 button that says go :
{
// namespace.form1.webbrowser1.navigate(listbox1.selecteditem.tostring()); //
this.Visible = false;
}
the error in the comment line , what is the solution to access the webbrowser from form 3 !!