TAB CONTROLS
-
Hello... I am using a tab control in my project. How can I display a webpage when I choose one of the tabs? Thank you...:)
First, add a reference to Microsoft's WEb Browser control to your project:
1. Bring up your Toolbox window and click on the My User Controls tab
2. Right-click in the Toolbox window and click Add/Remove Items...
3. Click on the COM Component tab.
4. Scroll down to Microsoft Web Browser and click the checkbox next to it, then OK.At this point, you should see a little world icon in your Toolbox labeled Microsoft Web Browser.
5. Click on your tab tab in the designer to bring up the page you want this on.
6. Drag a Web Browser Control from your Toolbox onto the tab page.Now all you have to do is set the properties of the borwser to arrange it the way you want, like if you want an address bar showing, status bar, menu bar, ... Than when that tab is clicked, your event handler should do something like this:
AxWebBrowser1.Navigate("http://www.google.com")
or some other web page, perhaps stored locally:
AxWebBrowser1.Navigate("C:\\testdir\\filename.html")
RageInTheMachine9532
-
First, add a reference to Microsoft's WEb Browser control to your project:
1. Bring up your Toolbox window and click on the My User Controls tab
2. Right-click in the Toolbox window and click Add/Remove Items...
3. Click on the COM Component tab.
4. Scroll down to Microsoft Web Browser and click the checkbox next to it, then OK.At this point, you should see a little world icon in your Toolbox labeled Microsoft Web Browser.
5. Click on your tab tab in the designer to bring up the page you want this on.
6. Drag a Web Browser Control from your Toolbox onto the tab page.Now all you have to do is set the properties of the borwser to arrange it the way you want, like if you want an address bar showing, status bar, menu bar, ... Than when that tab is clicked, your event handler should do something like this:
AxWebBrowser1.Navigate("http://www.google.com")
or some other web page, perhaps stored locally:
AxWebBrowser1.Navigate("C:\\testdir\\filename.html")
RageInTheMachine9532
-
Dear RageInTheMachine9532, Your advice really helped us. A very big thank you to you..... len_ems
No problem. Thank you. RageInTheMachine9532