How to make this open a webbrowser inside a new form

Posted by user335932 on Stack Overflow See other posts from Stack Overflow or by user335932
Published on 2010-06-01T23:32:15Z Indexed on 2010/06/01 23:43 UTC
Read the original article Hit count: 194

Filed under:
|
|
private void button5_Click(object sender, EventArgs e)
{
    if (domainUpDown2.Text == "Battlefield: Bad Company 2")
    {
        Form2 form2 = new Form2();
        form2.ShowDialog();
    }
}                   

All that does is open a new blank form, but i need it to open a new form with a webbrowser in it so i can set it url dependent on the if statement..

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms