Test Your Knowledge

Windows Forms - Lesson 4: Menus & Dialogs Quiz

Answer all questions to test your understanding

1 Which control is used to create a menu bar in Windows Forms?
2 What method displays a MessageBox with an OK button?
3 What does OpenFileDialog.ShowDialog() return?
4 How do you access the selected file from OpenFileDialog?
5 What does setting DialogResult = OK do in a custom form?