30 Questions
What is the method called when Timer1.Interval milliseconds elapses?
Timer1.Timer()
How do you begin a timer in Visual Basic?
Set Timer's Enabled property to True
Which prefix is suggested for naming Line control in Visual Basic?
lin
What type of files can be displayed using PictureBox control?
.gif, .jpeg, and .bmp files
What property can be used to resize pictures in an Image control to fit the control?
Stretch
What function can be used to assign a picture to an image control at run time?
LoadPicture
What is a good programming habit when naming Visual Basic controls?
Begin each name with three prefixes that determine the type of control
How are words typically concatenated in a Visual Basic control name?
Using an underscore
Which property affects the color of the text in most visible objects?
ForeColor
What property is used for the string of characters that appears inside a control in Visual Basic?
Caption
What are the default states of controls and forms in terms of visibility and enablement at runtime?
Both visible and enabled
Which property affects the position and size of visible objects in Visual Basic?
Left, Top, Width, and Height Properties
What is the purpose of hiding controls in a disabled state?
To prevent users from interacting with the controls
Which event occurs when the user double-clicks on a control using the left mouse button?
DblClick event
What does the KeyPress event in Visual Basic trigger?
Event triggered when a key is pressed while a control has focus
Which event in Visual Basic is fired whenever the contents of a control change?
Change event
What does the MouseUp event in Visual Basic signify?
Mouse is released on a control
Which property affects the shape of the mouse cursor when hovering over a control?
MousePointer Property
What is the purpose of a Form in a Visual Basic program?
Display controls and codes
Which property must the Name property of an object in Visual Basic start with?
A letter
What does the Caption property determine in a Form or MDI form object?
The text displayed in the title bar
What does setting the Enabled property to False for a form or control do?
Prevents the object from responding to events
What does the Control Box property indicate in Visual Basic?
Displays a close button on the form
What does the Appearance property specify for controls on an MDIForm or Form Object?
Object's paint style
What does a MaxButton property with a value 'False' indicate?
The form doesn't have a Maximize button
What does a MinButton property with a value 'True' signify?
The form has a Maximize button
What does the Visible property with a value 'False' represent?
Object is hidden
What does the WindowState property with a value 'VbMaximized' indicate?
Maximized
What is the purpose of a CommandButton control in Visual Basic?
Create a button that can choose to carry out a command
What does the Moveable property with a value '0' signify?
The object cannot be moved
Test your knowledge on Visual Basic events, event procedures, and how they are used in programming. Learn about common events like Click and DblClick events and how they are associated with objects in Visual Basic.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free