Echreo Posted May 25, 2014 Author Share Posted May 25, 2014 please some body help me b4 I break my pc. I'm using vb 2010.I'm making a simple web app. It will only have 2 thing a menu bar and a webbowser thing. Now where I need help is I need the menu items to open a url in the webbrowser thing. Link to comment Share on other sites More sharing options...
guzmanm Posted May 25, 2014 Share Posted May 25, 2014 I'm confused. Are you saying you want to open URLs in the web browser control?If so, you can do this by letting the user input a link into a textbox and using the following code:```MyWebBrowser.Navigate(TextBox1.Text)```Replacing names accordingly, of course.More information: [http://www.vbtutor.net/index.php/visual-basic-2010-lesson-19/](http://www.vbtutor.net/index.php/visual-basic-2010-lesson-19/) Link to comment Share on other sites More sharing options...
Echreo Posted May 25, 2014 Author Share Posted May 25, 2014 I'm not making a browser. What I'm trying to do is, Open the home page of my web site in the web browser control and change the pages of my site by the menu bar. Link to comment Share on other sites More sharing options...
guzmanm Posted May 25, 2014 Share Posted May 25, 2014 Well, if you're using a webbrowser control, you can use this code to open a website with it:```MyWebBrowser.Navigate("http://www.yourwebsite.com")``` Link to comment Share on other sites More sharing options...
Echreo Posted May 25, 2014 Author Share Posted May 25, 2014 Do I to change change the mywebrowser text? Link to comment Share on other sites More sharing options...
Echreo Posted May 25, 2014 Author Share Posted May 25, 2014 ty soooo much it wokrs Link to comment Share on other sites More sharing options...
guzmanm Posted May 26, 2014 Share Posted May 26, 2014 > ty soooo much it wokrsGlad to hear that! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now