SlideServe
Menu
Préférences
© SlideServe · v2026

VB.NET Programming

benedict-davis avatar
16 diapositives · 362 Views · Oct 31, 2014

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

VB.NET Programming - slide 1
01 / 16VB.NET Programming
1 / 17

Télécharger la présentation

VB.NET Programming
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  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