3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Creating Your First Program In Visual Basic

Creating Your First Program In Visual Basic
This instructable will show you how to program Microsoft Visual Basic 2005 Express Edition. The example that you will create today is a simple image viewer.

If you like this instructable please push the + button at the top of the instructable. Thanks.

Also, I think I will be like half the other instructables out there and say that this is my first instructable and please don't be to harsh.

EDIT: Once you have completed this instructable, continue learning VB with my second Visual Basic Instructable: Creating a Program in Visual Basic: Web Browser
 
Remove these adsRemove these ads by Signing Up
 

Step 1Download Visual Basic

Download Visual Basic
You can download visual basic 2008 from microsoft but this instructable is specificly for VB 2005 wich you can download from freeware files

EDIT: It is now recommended you VB 2008, as I will use it for any future tutorials. Link

Please note: you will still need to be connected to the internet during the install.
« Previous StepDownload PDFView All StepsNext Step »
50 comments
1-40 of 50next »
Jan 31, 2012. 2:24 PMwaterlubber says:
cool. first pic viewer that worked. unlike microsoft's example...:)PS had to double click button instead of adding code to avoid those pesky errors.
BTY Figured out had do to that auto size thing. set size to AutoSize. Easy. Same with copy right.
Use this:
MessageBox.Show("YOUR MESSAGE HERE")
That puts a pop-up!
Oct 24, 2010. 6:58 PMmegatjt says:
here is virtual basic expres edition free

http://en.kioskea.net/download/download-104-visual-basic-express-edition
May 14, 2010. 8:14 PMFox-san48 says:
very nice, i just made the hello world thing in vb express 2008 that, i think is the best place to start, i'll try yours now though, thanks :D
Jul 3, 2009. 7:25 AMColonel88 says:
It doesnt work because if you play it there is a ton of errors. Bad code.
Jul 3, 2009. 7:37 AMColonel88 says:
"pic" is not declared. How to make it declared???
Jul 23, 2008. 10:33 PMRockerx says:
I just thought It would be funny to make a program that had a list of buttons and when you press one it made the sound that it had labeled on it. I found a cd of about 200 different sounds when this came to mind. I was about to do it but got stuck. How do you make a button make sound when you hit it and not do anything else?
Jul 24, 2008. 11:20 AMRockerx says:
alright thanks!
Jan 23, 2009. 7:14 PMawang8 says:
It is possible to do this. First download a free converter and convert all your files to .wav (I'm not responsible for any viruses). In a new form add all the buttons you want and name them. Then double-click of their button. Some code should appear. Inbetween the two lines add:
My.Computer.Audio.Play(My.Resources.filenamehere, AudioPlayMode.Background)
replacing filenamehere with the name of your audio file (don't write .wav). Repeat for each button. You should now have about a hundred errors. Now, to fix those errors go to Project - Properties and click on the resources tab. Click add resource and select your file. Repeat for every song. All errors should disappear. Now debug your program and check to see if it works.

If it does: Hooray! You're finished. Now publish it and install.

If it doesn't: Make sure you done everything correctly. If it still doesn't work, get a hammer and smash your "I won't work for you" computer.
Jun 23, 2009. 4:02 PManiman1 says:
you dont need a converter!!! Goto www.mediaconvert.com
Jun 30, 2009. 7:04 AManiman1 says:
no its unlimited free and online i use it all the times
Jan 25, 2009. 2:59 PMawang8 says:
Happy to help.
May 13, 2009. 4:12 PMReCreate says:
How Do i register Visual Basic? I need a key,Since this is free
May 14, 2009. 10:02 AMReCreate says:
When i click on Help > Register product On the top it says Visual Studio I downloaded exactly what you have here,Whats going on?
May 14, 2009. 9:50 PMReCreate says:
Well,Why is it telling me i have to register in 28 Days now?
May 15, 2009. 11:38 AMReCreate says:
Argh...
May 15, 2009. 5:48 PMReCreate says:
Can You Rephrase that first sentence? And your Saying that registration is for something else? Whew,Good.
May 15, 2009. 5:48 PMReCreate says:
Ok,Good.
May 15, 2009. 10:55 AMReCreate says:
Hmm.Ill try
May 14, 2009. 10:00 AMReCreate says:
Yes,I have Visual Basic 2005 Express edition,Is it completely free?
May 12, 2009. 10:34 PMReCreate says:
Nice,Downloaded,Installed it,Now i will have to wait till tomorrow,Its one o'clock AM
May 13, 2009. 9:57 AMReCreate says:
Ah,Im back,Now i checking out the tut ;)
Feb 22, 2009. 12:27 PMemptyport says:
Great Instructable. I am a complete noob at this stuff but I had no problem creating this program.
Dec 11, 2008. 12:45 AMjeffconnelly says:
You got the picture on step 6 from www.imagechef.com I was just on there.
Aug 20, 2008. 1:36 PMlolcat360 says:
does the free version have any viruses?
Oct 17, 2008. 3:08 PMMasterMediaXD says:
No
Aug 30, 2008. 8:15 PMTh3Snip3r says:
Its from Microsoft, No, it doesn't.
Jul 25, 2008. 1:11 AMnattyee says:
that's awesome munchman
May 13, 2008. 11:54 AMtwenglish1 says:
cool instructable i made one on how to make a chat program in visual basic check it out
1-40 of 50next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
12
Followers
9
Author:munchman
I like doing things. Whether it be blowing stuff up or creating a webpage.