daveofgv 0 Light Poster

Hello all,

I have a small program that the user can add websites to and on another form a button changes it's text to the website name and when the user clicks the button my webbrowser opens up and goes directly to the website the admin approved.

Right now I have:

webbrowser Browser = new webbrowser
            string() myURL = Promo_SSP.Properties.Settings.Default.url1;
            Browser.WebBrowser1.Navigate(myURL);
            webbrowser wb = new webbrowser();
            wb.Show();

However, it does not work......

To change the button name I have:

private void internetsites_Load(object sender, EventArgs e)
        {
            string myURL = Promo_SSP.Properties.Settings.Default.url1;
            urlsite1btn.Text = Properties.Settings.Default.urlname1;
            
        }
    }

and it works just fine.

I just don't know how to get it to navigate to the specified site.

If I have a settings.settings named url1 and want a button to navigate to that setting after being clicked does anyone know what I am doing wrong?

Thanks in advanced

daveofgv

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.