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

Step 1: 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.
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.<br>BTY Figured out had do to that auto size thing. set size to AutoSize. Easy. Same with copy right.<br>Use this:<br>MessageBox.Show(&quot;YOUR MESSAGE HERE&quot;)<br>That puts a pop-up!
here is virtual basic expres edition free<br><br>http://en.kioskea.net/download/download-104-visual-basic-express-edition<br>
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<br />
It doesnt work because if you play it there is a ton of errors. Bad code.
"pic" is not declared. How to make it declared???
Pic is declared by the line<br/><pre>Private pic As bitmap</pre>
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?
hmm... I know you can embed a windows media control into a form... I'll tell you what... I'll look around for you and PM you with the answer. Thanks, Munchman
alright thanks!
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:<br/><pre>My.Computer.Audio.Play(My.Resources.filenamehere, AudioPlayMode.Background)</pre>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.<br/><br/>If it does: Hooray! You're finished. Now publish it and install.<br/><br/>If it doesn't: Make sure you done everything correctly. If it still doesn't work, get a hammer and smash your &quot;I won't work for you&quot; computer.<br/>
you dont need a converter!!! Goto www.mediaconvert.com
<sup><sub><sup><sub>PSST: That's a converter, just an online one, that would chew into your usage limit if you use it a lot</sub></sup></sub></sup><br/>
no its unlimited free and online i use it all the times
But still a converter. And because it's online if you use it enough your internet usage will be eaten up (excess usage fees or even worse... shaping! <shudder>)
That's a good idea. <em>And,</em> you just taught me resources. Thanks!<br/>
Happy to help.
How Do i register Visual Basic? I need a key,Since this is free
You shouldn't need a key. Make sure you get the express edition, not Visual Studio, you have to pay for the latter.
When i click on Help > Register product On the top it says Visual Studio I downloaded exactly what you have here,Whats going on?
Okay, I understand what is happening. Microsoft makes a product known as Visual Studio, it is a collection of VB.NET, Visual C# and Visual C++ in the one product. It costs around about $299 US for the Professional Edition. Visual Studio Express Editions (here is where my knowledge ended until I researched this) is these languages broken into separate products (ie VB.NET Express Edition) I didn't realise that they still came under the Visual Studio banner. Bottom line is, it is free, and sorry for the confusion.
Well,Why is it telling me i have to register in 28 Days now?
Hmm, that has never happened to me... Maybe Microsoft wants people to upgrade... Try downloading the latest version <a rel="nofollow" href="http://www.microsoft.com/express/vb/">link</a><br/>
Oh, your screenshot just made it click! You don't need to register, It just allows you to access things like program updates and whatnot. You don't need to do it, and if you don't the program isn't limited in any way. Just ignore it, the program will be fine. Once again, sorry for the confusion :)
Sorry, not program updates, you get things such as added extra tools etc
Can You Rephrase that first sentence? And your Saying that registration is for something else? Whew,Good.
Hmm.Ill try
Yes,I have Visual Basic 2005 Express edition,Is it completely free?
Nice,Downloaded,Installed it,Now i will have to wait till tomorrow,Its one o'clock AM
Ah,Im back,Now i checking out the tut ;)
Great Instructable. I am a complete noob at this stuff but I had no problem creating this program.
You got the picture on step 6 from www.imagechef.com I was just on there.
No, it is my avatar. I got it from the MSN avatar website.
Although, looking at that site, I can stop using my low quality screenshot from msn (don't tell them I stole it.)
does the free version have any viruses?
Its from Microsoft, No, it doesn't.
that's awesome munchman
cool instructable i made one on how to make a chat program in visual basic check it out
very nice! Great instructable!
don't you have to "dim" private pic as bitmap? i'm in computer programming at my school and we use vb2005 and to use a variable we use "dim x as integer" FOR EXAMPLE
"Private" is also used for declaring a variable
ill make a virus! just kidding haha cool instructable
It's good for making somthink that <em>looks </em>like a virus.<br/>
Nice instructable, but you should explain the code, if you want ppl to learn!
Thanks, I will add it to the instructable when I get a chance.
Added. Tell me if you think I should break it into a new step...
Thanks, it look nice and it's very instructible :)

About This Instructable


24 favorites


Bio: I like doing things. Whether it be blowing stuff up or creating a webpage.
More by munchman: A new show, and how to jump out of an exploding building without killing yourself. How to make a tropical smoothie Electronic Drum Kit
Add instructable to: