Do you want to like make my own web browser Fast & easy to use, Here are the Tutorial about Make Your Own Web Browser. This will make in Visual Basic.
[FONT=Arial, Helvetica, sans-serif]Step 1.
[/FONT][FONT=Arial, Helvetica, sans-serif]Open Visual Basic, and Press CTRL+T or go to the Project Menu -> Components. When the Components dialog pops-up scroll down to the Microsoft Internet Controls in the Controls section, select it and press OK.[/FONT]
[FONT=Arial, Helvetica, sans-serif]
*www.acky.net/tutorials/vb/wbrowser/pic1.gif
[/FONT]
[FONT=Arial, Helvetica, sans-serif]If you did the step above correctly, you should see a new icon on your Toolbox:[/FONT]
[FONT=Arial, Helvetica, sans-serif]
*www.acky.net/tutorials/vb/wbrowser/pic2.gif
Step 2
In this step, you would need to add the following controls to the form:
• 4 command buttons and name them: cmdBack, cmdForward, cmdStop & cmdHome
• 1 label control and name it: lbCaption
• 1 combobox control and name it: cboURL
• The webbrowser control you've just added, and name it: wWeb
Your form will now look something like this:
*www.acky.net/tutorials/vb/wbrowser/pic3.gif
You've just finished the basic interface for your web browser application. Remember, you can always go beyond this by using the Toolbar control to make it look nicer!
Step 3
[FONT=Arial, Helvetica, sans-serif]Now that you've finished the user interface for your web browser, comes the hard part, you have to write codes for your browser to function properly.[/FONT]
[FONT=Arial, Helvetica, sans-serif]Open the code for your web browser form and follow the following steps.[/FONT]
[FONT=Arial, Helvetica, sans-serif]In the cmdBack_Click() event, put in this code:
wweb.GoBack
the GoBack method makes the web browser control to go back to the previous page.
In the cmdForward_Click() event, put in this code:[/FONT]
[FONT=Arial, Helvetica, sans-serif]wWeb.GoForward
The GoForward method makes the web browser control to go forward to another page.[/FONT]
[FONT=Arial, Helvetica, sans-serif]In the cmdStop_Click() event, put in this code:[/FONT]
[FONT=Arial, Helvetica, sans-serif]
wWeb.Stop
The Stop method makes the web browser control stop whatever it's doing.[/FONT]
[FONT=Arial, Helvetica, sans-serif]In the cmdHome_Click() event, put in this code:[/FONT]
[FONT=Arial, Helvetica, sans-serif]
wWeb.GoHome
The Home method makes your web browser control navigate back to the webpage that you set as home in the Internet Explorer Option. [/FONT]
[FONT=Arial, Helvetica, sans-serif]In the cboURL_KeyDown() event, put in this code
If KeyCode = vbKeyReturn Then
wWeb.Navigate cboURL.Text
End If
That code will make the web browser control navigate to the URL you that you specified in the cboURL whenever you press the return key while typing in the combo box.[/FONT]
Step 4
Congratulations!
You've now created your very own web browser. Tune in for the next edition of the Web Browser control tutorial for information on how to add a progress bar, status text, and advanced controlling of the web browser control.
If you would like to try download a ready version of this tutorial please click here.
Reply Please!
[/FONT]
[FONT=Arial, Helvetica, sans-serif]Step 1.
[/FONT][FONT=Arial, Helvetica, sans-serif]Open Visual Basic, and Press CTRL+T or go to the Project Menu -> Components. When the Components dialog pops-up scroll down to the Microsoft Internet Controls in the Controls section, select it and press OK.[/FONT]
[FONT=Arial, Helvetica, sans-serif]
*www.acky.net/tutorials/vb/wbrowser/pic1.gif
[/FONT]
[FONT=Arial, Helvetica, sans-serif]If you did the step above correctly, you should see a new icon on your Toolbox:[/FONT]
[FONT=Arial, Helvetica, sans-serif]
*www.acky.net/tutorials/vb/wbrowser/pic2.gif
Step 2
In this step, you would need to add the following controls to the form:
• 4 command buttons and name them: cmdBack, cmdForward, cmdStop & cmdHome
• 1 label control and name it: lbCaption
• 1 combobox control and name it: cboURL
• The webbrowser control you've just added, and name it: wWeb
Your form will now look something like this:
*www.acky.net/tutorials/vb/wbrowser/pic3.gif
You've just finished the basic interface for your web browser application. Remember, you can always go beyond this by using the Toolbar control to make it look nicer!
Step 3
[FONT=Arial, Helvetica, sans-serif]Now that you've finished the user interface for your web browser, comes the hard part, you have to write codes for your browser to function properly.[/FONT]
[FONT=Arial, Helvetica, sans-serif]Open the code for your web browser form and follow the following steps.[/FONT]
[FONT=Arial, Helvetica, sans-serif]In the cmdBack_Click() event, put in this code:
wweb.GoBack
the GoBack method makes the web browser control to go back to the previous page.
In the cmdForward_Click() event, put in this code:[/FONT]
[FONT=Arial, Helvetica, sans-serif]wWeb.GoForward
The GoForward method makes the web browser control to go forward to another page.[/FONT]
[FONT=Arial, Helvetica, sans-serif]In the cmdStop_Click() event, put in this code:[/FONT]
[FONT=Arial, Helvetica, sans-serif]
wWeb.Stop
The Stop method makes the web browser control stop whatever it's doing.[/FONT]
[FONT=Arial, Helvetica, sans-serif]In the cmdHome_Click() event, put in this code:[/FONT]
[FONT=Arial, Helvetica, sans-serif]
wWeb.GoHome
The Home method makes your web browser control navigate back to the webpage that you set as home in the Internet Explorer Option. [/FONT]
[FONT=Arial, Helvetica, sans-serif]In the cboURL_KeyDown() event, put in this code
If KeyCode = vbKeyReturn Then
wWeb.Navigate cboURL.Text
End If
That code will make the web browser control navigate to the URL you that you specified in the cboURL whenever you press the return key while typing in the combo box.[/FONT]
Step 4
Congratulations!
You've now created your very own web browser. Tune in for the next edition of the Web Browser control tutorial for information on how to add a progress bar, status text, and advanced controlling of the web browser control.
If you would like to try download a ready version of this tutorial please click here.
Reply Please!
[/FONT]