0% found this document useful (0 votes)
13 views2 pages

Computer Lesson 3 1st Quarter

The document contains questions about Visual Basic code and properties. It asks which code samples would: 1) Make RadioButton1 visible 2) Display a message box with the text "Welcome to Visual Basic!" 3) Set the tooltip for Button1 to say "Save As button" It also contains True/False questions about setting properties at design time versus run time.

Uploaded by

Queencie Grajo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Computer Lesson 3 1st Quarter

The document contains questions about Visual Basic code and properties. It asks which code samples would: 1) Make RadioButton1 visible 2) Display a message box with the text "Welcome to Visual Basic!" 3) Set the tooltip for Button1 to say "Save As button" It also contains True/False questions about setting properties at design time versus run time.

Uploaded by

Queencie Grajo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Which of the following statements will show RadioButton1 on the form?

• RadioButton1.Visible = True

Which of the following statements will display the message “Welcome to Visual Basic” in a
Message Box?

• MessageBox.Show(“Welcome to Visual Basic!”)

Which of the following statements will display ToolTip1 for Button1 that says “Save As button”.

• ToolTip1.SetToolTip(Button1, “Save As button”)

You can use the properties window to change the properties of an object during run time – False
The Enabled property sets the value that will indicate whether the control is displayed or not –
True
You can change the properties of a control during design time but not during run time – False
Which of the following codes will display the string “Welcome to Visual Basic!” in TextBox1?

• TextBox1.Text = “Welcome to Visual Basic!”


Which of the following statements will change the property of Button1 to enabled.

• Button1.Enabled = True

Event – an action recognized by an object or control, example a mouse clicks or key press
The correct answer is:

This refers to the time after you click the Start Debugging button. → Run Time,

It is a programming paradigm in which the flow of program execution is


determined by events. → Event Driven

It describes the variables, properties, procedures, and events of an object. → Class

This property of a control sets the value that indicates whether the control is
displayed or not. → Visible

It represents a small rectangular pop-up window that displays a brief description of


a control’s purpose when the mouse pointer is above the control. → ToolTip

This property of a control restricts user access to it by preventing him from clicking it.
→ Enabled

It is a combination of program code and data that can be treated as a unit. →


Object

This refers to the time spent in creating and developing the application. → Design
Time

It is a keyword that refers to the control itself. → Me

This parameter of a TextBox echoes the message typed by the user. → Sender

You might also like