Академический Документы
Профессиональный Документы
Культура Документы
Basic .NET
Input box
Add an object.
Page
Solution
Server
Explorer
Explorer
Toolbox
Class
View
Dynamic
Help
5
Creating a Windows-Based
Application
13
Name property
Text property
StartPosition property
Size property
BackgroundImage property
14
15
16
Task to do:
Private Sub Button1_Click_1(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
MessageBox.Show("Hello World", "First Window")
End Sub
End Class
19
Test question 1
In Visual Basic, we work with objects that have _______.
A) Programmer preference
B) Projects, solutions, and procedures
C) Classes, actions, and disciplines
D) Properties, methods, and events
Test question 2
If you want to display text that cannot be modified by the
user, use the _______.
A)
B)
C)
D)
TextBox control
Label control
Caption control
MaskedTextBox control
21
Test question 3
If you want to display text that can be modified by the user,
use the _______.
A)
B)
C)
D)
TextBox control
Label control
Caption control
MaskedTextBox control
22
Test question 4
Assume that you are designing a form and it will be
necessary for the user to type in his name. You should
use a _____________ for inputting the user's name
A)
B)
C)
D)
Textbox
Label
Button
CheckBox
23
Input box
Public Class Form1