Thursday, April 4, 2013

Your first programme with visual basic in 5 minute


"hello world" hello world is the best sentence to start your programming life . its feel that you say hello computer world
,hello modern world and hello world that i can control it . So i like to start our lessons making programme that when we click on button message box appear and say to us hello to your world . Let us begin
First we must open visual basic .
After we opened it it should look like this:

visual basic 2005
Then click on new project like this:
new project

A dialog box will appear:

windows application


And we must chose windows applications and chose a nice name like myfirstproject :) .
After we click on O.K the IDE ( Integrated Development Environment ) will appear like that
IDE

Well this is your world now and we will take your hand to can control it .


  1. First from toolbox window select button and double click on it 

button

  2. Then we must double click on the button1 to go to code window
code window

  3. And we will type a simple code like this
    MsgBox("hello world")

this code will show a dialog box with "hello world" message


How to run a programme in visual basic?

from this bar click on the green icon like this ( start debugging icon)


our first programme will appear like this


And when we click on the button message box will appear like this



And congratulation for your first programme  :)

wait us for more tutorial and lessons.