Pages

Sunday, July 4, 2010

Intro for making a program using Visual Basic

In making a program using visual studio 2009, first you to plan what system or program you want to make, just like a simple program,

for example:
1. Question and Answer - your question is "What is your name?", your answer is "Me"

First you declare a question in a textbox, a blank textbox1 for the answer and in the button that who will check the answer, you double click in the button declare this code.

If textbox.text = "What is your name?" And textbox1.text= "ME" Then

MsgBox("You're Correct")

End If