1 / 17

CS 2340 Programming in VB.NET

CS 2340 Programming in VB.NET. Notes Folder. S:CoursesCSSEibrahimaCS2340Notes Folder Section1 Folder Section2. Programming Rules. Web Site. Create a New Project. Start MS Visual Studio 2012 New Project… Visual Basic Windows Windows Form Application Name: ibrahima_XXXn.

kura
Download Presentation

CS 2340 Programming in VB.NET

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. CS 2340Programming in VB.NET

  2. Notes Folder S:\Courses\CSSE\ibrahima\CS2340\Notes Folder Section1 Folder Section2

  3. Programming Rules Web Site

  4. Create a New Project • Start MS Visual Studio 2012 • New Project… • Visual Basic • Windows • Windows Form Application • Name: ibrahima_XXXn

  5. Save Project and Solution Make sure you know where is your program! • Save all • Create Solution folder: Uncheck • Browse location • Could change project / solution names • Check program location

  6. Reopen an Existing Project • Double click the project file • Double click the solution file • Open MS Visual Studio, then Open project Recent projects

  7. Windows Controls TextBox Get Input Display Output Label Display Information / Output Button User action . . .

  8. Label • Name: lblName • Font • Name • Size • Bold • Italic • Strikeout • Underline • Size • AutoSize • TextAlign • . . .

  9. TextBox • Name: txtName • Size • Multiline • ReadyOnly • BackColor • TabStop • TabIndex • . . .

  10. Button • Name: btnHello • Text • TextAlign • Size • TabStop • TabIndex • . . .

  11. Changing TabIndex • Menu View • Tab Order • Clicking the controls in order to change TabIndex • Close Tab Order • Multiple controls could receive the same TabIndex value

  12. Menu Format • Align • Tops • Lefts • ... • Make Same Size

  13. Menu Format • Horizontal Spacing • Vertical Spacing • Center in Form • Horizontally • Vertically

  14. Menu Format • Order • Bring to Front • Send to Back • Lock Controls

  15. Click Event • The button’s Click Event Users click a button when they want to do something. • Event Procedure Will be called when the event happens. • We will write the event procedure • Event procedure template Double click the button Select Events on Properties Windows

  16. Event Procedure Pseudo Code Declare variables Get Input Process Data Output Result

  17. String Operations ‘ Operators “&” and “+” append strings MessageBox.Show("Hello, " & theName + "!”) MessageBox.Show("Hello, " & theName + "!","Lab 1”, _ MessageBoxButtons.OK, _ MessageBoxIcon.Information)

More Related