1 / 16

VB.NET Programming

VB.NET Programming. Chapter 3. VB.NET. Starting the application Starting a new project Menus, Main Screen, Windows. Controls. Forms Frm name Back color Window State Text. Labels. Lbl Name Text TextAlign. Textboxes. Txt Name Text. Buttons (command buttons). Cmd Name Text

Download Presentation

VB.NET Programming

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. VB.NET Programming Chapter 3

  2. VB.NET • Starting the application • Starting a new project • Menus, Main Screen, Windows

  3. Controls Forms Frm name • Back color • Window State • Text

  4. Labels • Lbl Name • Text • TextAlign

  5. Textboxes • Txt Name • Text

  6. Buttons (command buttons) • Cmd Name • Text • backColor

  7. Listbox • Lst Name • Items • SelectedItem

  8. Picture Boxes • Pic Name • Loading a picture (Image)

  9. TabOrder/ Using shortcut Keys • TabIndex& before the letter (Alt)

  10. Events Procedure-declaration statement Keywords/reserved words Comments/documentation

  11. Commands • Exit • End • Clear • Text1.text = “” • Calculate • Answer = calculation • Val instead of string

  12. Numbers Arithmetic operations (*, /, ^, +, -) Order of operations(L – R, (), ^, * /, +-) Scientific notation/e-notation Data types(double, integer, currency, string) Built-in functions(sqrt, int, round)

  13. Strings • Declarations • Concatenation Built-in String Functions Length, ToUpper, ToLower, Trim Substring, IndexOf Empty String (Null string) Initializing a string to a value Line continuation character (&-)

  14. Formatting Output Format Functions • Format Number FormatNumber (12345.678, 1) will output (12,345.7) • FormatCurrency (12345.678, 2) will output ($12,345.68) • FormatPercent (.123456, 2) will output (12.35%) percent • Formatting with Zones fmtStr as String = ”{0, 15}{1, 10}{2, 8}”

  15. InClass Assignment Open the Chapter 3 Sample program Save this in a new folder with your name – DO NOT MODIFY THE ORIGINAL!!!! Add components and coding to get the user’s first name, middle initial, and last name. Concatenate and display the full name Declare and use variables for all of the inputted and outputted data Include code to calculate overtime (time and a half for hours over 40) Include code to subtract 25% of the gross pay for payroll taxes (round your answers) for NetPay Format output for currency.

  16. Homework • Page 105, #49 Also include textboxes for the table number and the waiter’s first name. Concatenate and display the table number, first name as one value. Format the output in a listbox to display tablenumber/first name, total bill and tips 2. Pg 128, #5

More Related