المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Button navigate



C# Programming
10-01-2009, 09:21 AM
Hello,

I am trying to make a browser using C# express, that will
support my web based game. I'm making it without a textbox.
I want about 10 buttons on the left side of the form, that
when clicked, tells the browser (located on the right side
of the form) which page to navigate to.

For instance:

[Gunsbutton] code: webBrowser1.Navigate(go to url http://www.mygame.com/guns.php);

[Armorbutton] code: webBrowser1.Navigate(go to url http://www.mygame.com/armor.php);

[Energybutton] code: webBrowser1.Navigate(go to url http://www.mygame.com/energy.php);


I'm just a beginner still, and I have looked everywhere
for what I think, should be a pretty simple code. But I
can't find it. Any help would be appreciated, I'm stuck. http://www.barakasoft.com/script/Forums/Images/smiley_confused.gif