12 Questions
What is the purpose of the & symbol in a menu item?
To indicate a shortcut
What happens when you double-click on an item in the menu?
It generates a blank function defining the action for that item
What is the purpose of the code this.BackColor = Color.Red;
?
To change the background color of the form
What is the purpose of the exitToolStripMenuItem_Click
method?
To close the form
How do you set an image for a menu item or ToolStrip?
Right-click on an item and select 'Set Image'
What is the purpose of the MenuStrip
control?
To add a menu to a form
What is the purpose of the Save As dialog box?
To allow users to store a file on the hard drive of the computer
What is the method used to bring up a dialog?
ShowDialog()
What is the general form of the MessageBox?
MessageBox.Show(message, title, buttons, icon)
What is the purpose of the Filter property in the SaveFileDialog?
To create a list of file extensions as a string
What is the object used to add a printing feature to a form?
PrintDialog
What is the result of a dialog box recorded as?
DialogResult
Learn how to add menus to your form in Visual Studio, including creating shortcuts and sub-menus. Understand how to define actions for menu items and more.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free