220 likes | 1.01k Views
Sequential Programming in Visual Basic. Sequential flow of statements. Statement 1 Statement 2. Any program that executes the instructions written one by one in a specific order is know as “ sequential programming ”. Designing a form. Properties of the Control Used :.
E N D
Sequential Programming in Visual Basic Sequential flow of statements Statement 1 Statement 2 • Any program that executes the instructions written one by one in a specific order is know as “sequential programming”.
Designing a form Properties of the Control Used :
Writing the code to calculate the area of a circle Calculating the area of a circle Click Command 1 Private sub Command_Click{ } Dim AREA As Single AREA= 3.14* Value { Text.Text } * { Text.Text } MsgBox “ THE AREA “ & AREA End Sub ENTER RADIUS 5 THE AREA IS 78.5 AREA OF CIRCLE
Giving Comments in Visual Basic • Comments serve as inline documentation that helps to read, reuse and maintain existing code. • To give a comment in Visual Basic, you can use an apostrophe (') or Rem Statement.
End Statement in Visual Basic End statement in Visual basic is used to stop the execution of a form. Designing the VB Form Label 2 Label 1 My favorite cuisines List 2 List of cuisines Command 1 List 1 Chinese Mexican Indian Lebanese Right Shift Command 2 Command 3 Command 4 Add Remove Clear