Академический Документы
Профессиональный Документы
Культура Документы
NET
A Windows-based application has a Windows user interface and runs on a desktop computer A user interface is what you see and interact with when using an application A Web-based application has a Web user interface and runs on a server
Programming with Microsoft Visual Basic .NET, Second Edition
Figure 1-6: New Project dialog box used to create a blank solution
Programming with Microsoft Visual Basic .NET, Second Edition
Figure 1-9: New Visual Basic .NET project added to the solution
Programming with Microsoft Visual Basic .NET, Second Edition
10
11
The Solution Explorer window shows that the Copyright Solution contains one project named Copyright Project Within the Copyright Project is:
A References folder Two files: AssemblyInfo.vb and Form1.vb
Programming with Microsoft Visual Basic .NET, Second Edition
12
13
14
Figure 1-15: Properties window showing the properties of the Form1.vb file object
Programming with Microsoft Visual Basic .NET, Second Edition
15
16
17
Saving a Solution
Options for saving a solution:
Click File on the menu bar, and then click Save All Click the Save All button on the Standard toolbar Select the solutions name in the Solution Explorer window, and then click the Save button on the Standard toolbar
18
19
Only one solution can be open in the IDE at any one time
20
21
22
23
24
By default, the tools on the Windows Form tab are listed in order by their estimated frequency of use, with the most used tools listed first
25
26
Name
Text AutoSize Location Font
28
Changing the Property for More Than One Control at a Time (continued)
Font sizes are typically measured in points, with one point equaling 1/72 of an inch
One reason for changing a font is to bring attention to a specific part of the screen You can change the font size for both controls at the same time by clicking one control and then pressing and holding down the Control key as you click the other control in the form
29
Changing the Property for More Than One Control at a Time (continued)
You can use the Control+Click method to select as many controls as you want
To cancel the selection of one of the selected controls, press and hold down the Control key as you click the control To cancel the selection of all of the selected controls, release the Control key, then click the form or an unselected control on the form
Programming with Microsoft Visual Basic .NET, Second Edition
30
31
32
33
34
35
36
37
38
39
40
41
42
You set the timer controls Interval property to the length of the desired time interval, in milliseconds
Programming with Microsoft Visual Basic .NET, Second Edition
43
44
45
Fixed3D
FixedDialog FixedSingle FixedToolWindow None Sizable SizableToolWindow
Fixed, three-dimensional
Fixed, thick dialog-style Fixed, thin line Fixed, tool window style No border Sizable, normal style (default) Sizable, tool window style
46
47
48
Summary
To create a blank solution, click File on the menu bar, point to New, and then click Blank Solution You can add a new project to the current solution by clicking File on the menu bar, pointing to Add Project, and then clicking New Project To save a solution, click File on the menu bar, and then click Save All To open an existing solution, click File on the menu bar, and then click Open Solution
Programming with Microsoft Visual Basic .NET, Second Edition
49
Summary (continued)
To add a control to a form, click the appropriate tool in the toolbox, but do not release the mouse button, drag the mouse pointer to the form, and release the mouse button To select multiple controls, click one control, then Control+click each of the other controls One way to open the Code Editor window is to right-click anywhere on the form (except the forms title bar), and then click View Code on the context menu
Programming with Microsoft Visual Basic .NET, Second Edition
50
Summary (continued)
Use the Timer tool to perform code at specified intervals of time Set the forms FormBorderStyle property to control the border style of the form To print the Visual Basic .NET code, open the Code Editor window, click File on the menu bar, click Print, and then click the OK button in the Print dialog box
51