!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Requirements:
$ Visual Studio/basic 2010
$ Few coding skills
$ A brain
$ Able to understand and read English !!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
There are total 10 Steps to make a Simple Web-Browser in VS/VB so Listen this Tut carefully and If u have any Problem then Ask here.
Continued..........
Step 1:
Open Visual Basic 2010 and then click New Project and Choose the Windows Form Application:
============================
===============================
Step 2:
Now you can change the name of the Browser and the Size:
===============================
====
Step 3:
Now you must Add a Panel by simply clicking the toolbox in the top left corner:
===============================
==
Step 4:
Now you must go to toolbox (once again) and choose WebBrowser:
=============================
===============================
Step 5:
Now Further you must open toolbox and add buttons (five of them in fact):
===============================
===
Step 6:
Now next Step is to Re-name the buttons into what I have done in the following picture:
===============================
=
Step 7:
Now you must add a Textbox and extend it as I have done.
You must also add a label, all of the required objects in this step are in the toolbox.
===============================
=
Step 8:
Now Furthermore you must add a statusstrip at the bottom of the webbrowser as I have done, you can obtain the status bar from the toolbar.
===============================
Now it is finally time to get some coding done!,
Double click the buttons before you add the codes, he codes for the buttons are below:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Ba
Code:
WebBrowser1.GoBack()
Forward Button:
Code:
WebBrowser1.GoForward()
Refre
Code:
WebBrowser1.Refresh()
Stop Button:
Code:
WebBrowser1.Stop()
Go Button:
Code:
WebBrowser1.Navigate(Textbox
!!!!!!!!!!!!!!!!!!!!!!!!!
After you have added the codes for the buttons you are done!
The codes should be something like this:
===============================
====
This is the whole code:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Code:
Publi
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.GoBack()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.GoForward()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
WebBrowser1.Stop()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
WebBrowser1.Refresh()
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
WebBrowser1.Navigate(TextBox1.Text)
End Sub
End Class
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Finally, after you have done everything and added all the codes etc,
you can change the icon of the browser and the name of the things.
This is how it looks like:
===============================
====
=
Thanks And Enjoy
0 comments: