Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "1. S:\Courses\CSSE\ibrahima\CS2340\Notes Folder Section1 Folder Section2 2."— Presentation transcript:

1 1

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

3 Web Site 3

4  Start MS Visual Studio 2012  New Project…  Visual Basic  Windows  Windows Form Application  Name: ibrahima_XXXn 4

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

6  Double click the project file  Double click the solution file  Open MS Visual Studio, then Open project Recent projects 6

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

8  Name: lblName  Font ◦ Name ◦ Size ◦ Bold ◦ Italic ◦ Strikeout ◦ Underline  Size  AutoSize  TextAlign ... 8

9  Name: txtName  Size  Multiline  ReadyOnly  BackColor  TabStop  TabIndex ... 9

10  Name: btnHello  Text  TextAlign  Size  TabStop  TabIndex ... 10

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

12  Align ◦ Tops ◦ Lefts ◦...  Make Same Size 12

13  Horizontal Spacing  Vertical Spacing  Center in Form ◦ Horizontally ◦ Vertically 13

14  Order ◦ Bring to Front ◦ Send to Back  Lock Controls 14

15  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 15

16 Declare variables Get Input Process Data Output Result 16

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


Download ppt "1. S:\Courses\CSSE\ibrahima\CS2340\Notes Folder Section1 Folder Section2 2."

Similar presentations


Ads by Google