1 / 7

Sequential Programming in Visual Basic

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 :.

afram
Download Presentation

Sequential Programming in Visual Basic

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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”.

  2. Designing a form Properties of the Control Used :

  3. 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

  4. 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.

  5. 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

  6. Property Names and Values

More Related