K
kimiraikkonen
Hello experts,
That's very very simple question but i wonder if you can help:
I have form1 and a button which brings user to form2 when button is
clicked, and i have a web-browser (.net 2.0 component) control placed
in form2 which is coded to run when form2 is loaded:
Form1 has only a button brings user to second form, form1 has that
code:
private void button1_Click(object sender, EventArgs e)
{
Form form2 = new Form();
form2.Show();
}
Form2 has that code:
private void Form2_Load(object sender, EventArgs e)
{
this.mybrowser.Navigate("http://www.google.com");
}
But then i run the program, when i go to form2 by clicking "button" in
form1, form 2 is shown empty as if there's no web-browser control
such. I'm beginner for C#, and there must be something missing.
Thanks...
That's very very simple question but i wonder if you can help:
I have form1 and a button which brings user to form2 when button is
clicked, and i have a web-browser (.net 2.0 component) control placed
in form2 which is coded to run when form2 is loaded:
Form1 has only a button brings user to second form, form1 has that
code:
private void button1_Click(object sender, EventArgs e)
{
Form form2 = new Form();
form2.Show();
}
Form2 has that code:
private void Form2_Load(object sender, EventArgs e)
{
this.mybrowser.Navigate("http://www.google.com");
}
But then i run the program, when i go to form2 by clicking "button" in
form1, form 2 is shown empty as if there's no web-browser control
such. I'm beginner for C#, and there must be something missing.
Thanks...