Visual Basic 2008 Tutorial Lesson 1
[IMG]https://i1213.photobucke*****m/albums/cc463/mpghtakari/1-2.jpg[/IMG]
To start your new project,you need to click file and select a new project.A windows will pop up and it will look something like this:
[IMG]https://i1213.photobucke*****m/albums/cc463/mpghtakari/2-2.jpg[/IMG]
The windows asks you to choose from five types of projects.We will work on WindowsFormsApplication.At the bottom of the window,you can rename your project to anything your heart desires.I will change mine to:"Lesson 1"
After creating your new project,another window will come up.Here you got an empty form,a toolbox,properties and other useful/not useful stuff.
[IMG]https://i1213.photobucke*****m/albums/cc463/mpghtakari/3-1.jpg[/IMG]
So we will now work on our first project.We will keep this easy.With this code,we will generate something.Like I want to pick a random number from 1-2.In this case I will use "Lesson 1" and "Tutorial".
First make a button and a textbox.Resize them how you like etc.Then click on button1 and add this code:
Code:
Dim Key As Interger
Key = (rnd()*2)
Select Case Key
Case 1
textbox1.text = " Lesson 1"
Case 2
textbox1.text = "Tutorial"
End Select
End Sub
[IMG]https://i1213.photobucke*****m/albums/cc463/mpghtakari/4.jpg[/IMG]
Now Debug your first application and it will show something like this:
[IMG]https://i1213.photobucke*****m/albums/cc463/mpghtakari/5.jpg[/IMG]
Thanks for reading.I will release my second one tomorrow or maybe later today.It took me half an hour to write this and take the screen shots,so don't hate and give me a Thanks.It only takes you 2 seconds.