Hi,
I'm using Visual C# .NET 2005, i have 2 forms when a button in form1
is clicked, second form must be shown, and second form (form2) has
webbrowser control associated to run on load time.
the problem is: When i do that webbrowser in form2 does not run:
In form1 i have that code:
private void button1_Click(o bject sender, EventArgs e)
{
Form form2 = new Form();
form2.Show();
}
In form2 i have that code which must run webbrowser when it is shown,
but it does not run webbrowser control until i set form2 as
default(first) page:
private void Form2_Load(obje ct sender, EventArgs e)
{
this.mybrowser. Navigate("http://www.google.com" );
}
What's the problem in that code?
However, VC# .NET 2005 has a lot of bugs when compared to Visual
Basic .NET 2005 express (maybe because of C#'s nature) such as big
delays on auto-correction syntaxes.(real-time correction is very late
and poor when compared vb.net 2005 express)
I'm using Visual C# .NET 2005, i have 2 forms when a button in form1
is clicked, second form must be shown, and second form (form2) has
webbrowser control associated to run on load time.
the problem is: When i do that webbrowser in form2 does not run:
In form1 i have that code:
private void button1_Click(o bject sender, EventArgs e)
{
Form form2 = new Form();
form2.Show();
}
In form2 i have that code which must run webbrowser when it is shown,
but it does not run webbrowser control until i set form2 as
default(first) page:
private void Form2_Load(obje ct sender, EventArgs e)
{
this.mybrowser. Navigate("http://www.google.com" );
}
What's the problem in that code?
However, VC# .NET 2005 has a lot of bugs when compared to Visual
Basic .NET 2005 express (maybe because of C#'s nature) such as big
delays on auto-correction syntaxes.(real-time correction is very late
and poor when compared vb.net 2005 express)