Friday, September 10, 2010

Simple Tutorial of Microsoft Visual Basic 2010

Hiii i am here to help those people who are just trying to learn visual basic by their own..So we should start with the beginning of a simple login form in visual basic.
First of all, this is the start page of Visual basic 2010..

1)CLICK on File,then New Project and at last click on Windows Forms Application. Click OK!.

Then a new page will open which would be like this as below:-

 
You can also reduce the size of the form by folding the corners.
Then on the mid left of the screen there is a option of Toolbox, which helps us in providing us suitable items. You can just check them what they mean one by one...But we are here to make a Login form ,so our required options are as below:-  
2) The toolbox seems to be like this:















3)THEN from the Toolbox, click on Label Icon and then click on TextBox icon below in the list.You can also choose them two times as i did... then rename the name and change it to Username and password as i did from the Properties option on the right side of the screen.









THEN your Form would look like this:-


4)Now again from the toolbox menu, click on the button item in the list. Copy the option and paste it two times as OK button and Cancel button...you can also change their name from the properties window.





5) Then Double click on the Cancel button and a new window will open which is use to write the codes of the form...and write the following code as:-


which means to close the program.

6) Then again back to the form1 and Double click on the OK button and again write the following codes:-
After all the codes written, return to the form again and on the top of the tool menu list of the screen..Click on the arrow button or click F5 i.e. function button on your keyboard...it will take 2-3 seconds to reload and your login form will be displaced.!!

Now You have successfully created your Login Form........Do you want to know further about it!!!....Wait its just a beginning and i will be back soon after few more updates..Till then TTYL.....and don't forget to leave comment.

4 Responses to “Simple Tutorial of Microsoft Visual Basic 2010”

Akshay Ohri said...
September 11, 2010 at 1:24 AM

hey dude you have entered wrong code for button1_click..
it should be..

if textbox1.text = "username" And textbox2.text = "password " then
msgbox("you have successfully logined",msgboxstyle.information,"Reslut")
else
msgbox("wrong password",msgboxstyle.excalmation,"Error")
end if


Unknown said...
September 11, 2010 at 10:26 AM

@akshay yaar uske bina bhi chal jata hai..they both hv same meaning.!!bt thanxs for telling that.....i will not do it in future


Unknown said...
September 11, 2010 at 7:46 PM

I want to suggest you that DO NOT COPY OTHER'S CONTENT AS IT CAN LEAD YOU BEHIND THE BARS!

CHECK THIS OUT - http://copyright.gov.in/Documents/CopyrightRules1957.pdf


Unknown said...
September 12, 2010 at 10:47 AM

@arjun who sayz that i hv copied it!!tell me the profile from where hv i copied..........if u r not sured then don't dare to say it!!


Post a Comment

My Daily Blogs really needs your valuable views to improve this blog. Please comment if you like it and too if you find an error . We will definitely look on it......
Thanxs

SEO at My Daily Blogs
Abhimanyu Saini