Support Forums
The Basics of VB [Part 1] - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: The Basics of VB [Part 1] (/showthread.php?tid=22713)



The Basics of VB [Part 1] - SomeWhiteGuy? - 10-14-2011

Don't delete this! I changed this post to part 1 so there is no need in deleting it, it's no longer the same as part 2.

Hey everyone, thought i would make a TUT about VB since i dont see any ;D This tutorial will be 4 different parts; Windows forms Basics, Some advanced WF things, Console application basics, some advanced console app things. So lets get started...

Part 1

[Image: WFA.png]
[Image: SBA.png]
Fisrt we'll start by making a simple web browser. This is simple but pretty neat because, well, you can browse the web with it! ;P

So first we need to make a new windows forms application:

[Image: NewWFAproject.jpg]

Next add 5 buttons & 1 combo box , make it look something like this:

[Image: BrowserLayout.jpg]

now click on the form and change the MaximizeBox property to false:

originally:

should now be:

what that does is makes it to where the user CANNOT maximize the box. The reason we did this is because you cant set the dock of a web browser to fill without it covering all of our other controls up.

now, FINALLY, add a web browser control. Set the dock property of the webbrowser to bottom.

[Image: AddBrowserandDockBottom.jpg]

Now time for......
Coding our Browser




Back button (Named 'NavigateBack'):

Forward Button (Named 'ForwardNavigate'):

Stop Button (Named 'StopNavigate'):

Go Button (Named 'GoNavigate'):

Refresh Button (Named 'RefreshWB'):

WebBrowser:

ComboBox:

If you want to add something a little more 'Advanced' then you can add this:

it will disable the forward and back buttons if it cant go forward or back...and one last thing before you're completely finished, click on the web browser and go to the properties box and change the 'Url' property to google or something so when the user runs the application it will automatically start up a web page instead of a blank page ;P

Everything in the web browser control is really self explanatory. if you have any questions feel free to post/PM/AIM (rogfanboy1)

Sorry if you're lazy but you will actually kinda learn more if you type it instead of C&P...

Ok! Now we're done with our browser...now we're gonna make a simple Notepad Application. This is useful for getting the hang of menu strips (The things that say 'File' 'Edit' 'Format', etc...) Another thread will be posted in a second for the second part due to the image limitations on each thread. I will update the post with the link as soon as it's done! Big Grin


RE: The Basics of VB [Part 1] - Digital-Punk - 10-15-2011

Very nice for beginners, web browser's are always fun to make. Are you gonna be continuing this series?


RE: The Basics of VB [Part 1] - SomeWhiteGuy? - 10-15-2011

(10-15-2011, 03:00 PM)Digital-Punk Wrote: Very nice for beginners, web browser's are always fun to make. Are you gonna be continuing this series?

I plan on it yes. It took me probably a week to do these because of all the GIFs I have on there, lol. I will try my best too though! Big Grin


RE: The Basics of VB [Part 1] - Digital-Punk - 10-15-2011

(10-15-2011, 03:25 PM)SomeWhiteGuy Wrote: I plan on it yes. It took me probably a week to do these because of all the GIFs I have on there, lol. I will try my best too though! Big Grin


I wouldnt really use any animated gifs, probably just one to show the final result. Other than that good job, hope to see the whole series.


RE: The Basics of VB [Part 1] - alabama - 10-16-2011

Must have spent awhile on the thread images, props to you. Great tutorial, do you plan on making a multi-function web browser?


RE: The Basics of VB [Part 1] - sam4 - 10-16-2011

Very nice tutorial because after this month i am going to start learning VB and this will be helpful for me Smile


RE: The Basics of VB [Part 1] - SomeWhiteGuy? - 10-25-2011

(10-16-2011, 01:36 AM)alabama Wrote: Must have spent awhile on the thread images, props to you. Great tutorial, do you plan on making a multi-function web browser?

Yes i do when i get to the advanced part. One that suggests websites based on your history and it will use the gecko engine.