Speed


|
Visual Basic - Basic Web Browser |
|
NOTICE: CUSTOMIZE WIN IS NO LONGER UP!!!
Today were going to make the browser below (It's Customize Win's Basic Web Browser).
Click Here: to download Customize Win's Basic Web browser. (that's the browser seen above)
First I'd like you to go to your properties, and change the text from Form1 to Web Browser, and if you feel like changing the default icon on the left side of the text, just go down to Icon, and browse for your icon.
Now If you don't want to make a layout for the web browser (we're going to make a camo background), like add a background image/color to it, edit the font, font size, etc: etc: skip this part, but if you'd like to then continue below.
Save this image to your computer, because we're going to use it as our web browsers background.
Once you've done that go to BackgroundImage located in the Appearance and apply it.
Now add 4 buttons, and name them Back, Forward, Refresh, and Stop.
Now add a TextBox and another button to the browser, and name your button Go!.
Now add a WebBrower, and a ProgressBar.
Your browser should look like this so far.
Now it's time for the coding.
Double click the back button, and apply the following code below to it.
| Code: | | WebBrowser1.GoBack() |
Now apply the same for the rest of the buttons, but add different codes for them, and their located below.
Forward
| Code: | | WebBrowser1.GoForward() |
Refresh
| Code: | | WebBrowser1.Refresh() |
Stop
Go!
| Code: | | WebBrowser1.Navigate(TextBox1.Text) |
Now it's time to add a code for the progressbar.
Progressbar
| Code: |
Private Sub WebBrowser1_ProgressChanged(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles WebBrowser1.ProgressChanged
ProgressBar1.Maximum = e.MaximumProgress
ProgressBar1.Value = e.CurrentProgress
End Sub
|
Now all your coding is done, but we still haft to make sure that when we resize the browser that it wont stay on the top left.
Leave the back, forward, refresh, and stop buttons on the top left, as the anchor is already set for top left as that's it's default position.
Click your textbox, and look for Anchor in the properties, and set it for Top, Left, Right.
Now click the Go! button, and set it's anchor to Top, Right
Click your web browser, and set it's anchor to Top, Bottom, Left, Right
Now click your progressbar, and set it's anchor to Bottom, Left, Right.
Now if you want to finish it's layout follow these steps below, but if you don't just skip this part.
Now click on your Back button, and change it's background color to Dark Green, Now download the Army font, and move the .ttf text files to C:\Windows\Fonts.
Now with that done now change your font to army, and change the size to 10.
Now apply thoughs sets to the rest of the buttons.
Now click on your TextBox, and change it's background color to black, and apply the army font to it, and change it's color to green.
Now if you want to change the applications default icon, just double click My Project, and click the drop down menu (Under Icon), and click browse so you can browse for your image and apply it to your application.
Now if you wish to test the browser click the green arrow pointing to the right, Press F5, or click Debug, and then click Start Debugging
Now if you feel it's good enough to publish then publish it, by going to Build, Publish Web Browser, and I recommend publishing it to your deskop, but it's your choice.
Now double click the setup.exe application to install your web browser.
Now once it's installed your going to need to remove a couple files.
If you saved it to your desktop delete the Application Files folder, BROWSER_NAME.application, and setup.exe.
Now click your start menu and search for the name you gave your web browser, and remove all the files you don't need but BROWSER_NAME.exe
I had to delete the 2.0 folder located at C:\Users\Speed\AppData\Local\Apps
but before that look into the folders and look for the file BROWSER_NAME.exe
Now move that file to where ever you want. (I moved mine to my desktop)
I also had to delete the folder located at = C:\Users\Speed\AppData\Roaming\Microsoft\Windows\Start Menu\Programs (The name will be what you set your web browsers name)
Your now done, so double click BROWSER_NAME.exe and your now using your own basic web browser.
_________________
Train Insane or Remain The Same
There's No Room In A Warriors Heart For Self Doubt |
|