How to Create a Simple Program Using Visual Basic by alexaramadani

VIEWS: 49 PAGES: 2

									How to Create a Simple Program Using Visual Basic

How to Create a Program that I will post this time is How to Create a Simple Program Using Visual Basic.
I have some Visual Basic Script to learn to make a simple program, so even just a simple program that
does not mean, but at least add the science right? Yes if you want to make just created. This is only to
increase knowledge and just sharing it on How to Create a Simple Program Using Visual Basic

These steps - steps:

A. Sign In Visual Basic, and select standard exe, rename the form
2. 4 Create a Label

  Label figure 1 is named First
  Label 2 is named Second Figures
  Label 3 are given results
  Label 4 (Not Required) filled with a calculator

3. 4 Make a command button
A command button called Add
code:
Dim a, b as integer
A = text 1.text
B = text 2.text
Text3.text = a + b
2 Command Button named Less
code:
Dim a, b as integer
A = Text1.Text
B = text2.text
Text3.text = a-b
3 Command Button named Kali
code:
Dim a, b as integer
A = Text1.Text
B = text2.text
Text3.text = a * b
Command Button 4 is named for
code:
Dim a, b as integer
A = Text1.Text
B = text2.text
Text3.text = a / b
4. Make 3 Text

  Text 1 for the first number
  Text 2 for the second number
  Text 3 for the sum of text1 and text2

Test your program that you created earlier by pressing the F5 key or click the toolbar Run - Start.
Located up to you, if the program does not run properly means that there are no errors you should fix it
again. Visual Basic will usually tell you immediately, where the error code. If you want to change the
caption text live setting, if you want to change the text or font size to live. If you want to change
bacground picture just click on the setting formnya. If you are finished just click the file - make project.
Exe. So Deah calculator.

								
To top