Checking It

Select the correct answer to the following questions.

Multiple Choice

1:To display a form of type MyForm when an application starts, what do you need to do?
  1. Call the Show method on a MyForm object.

  2. Set the Startup Object to be Sub Main.

  3. Set the Startup Object to be MyForm.

  4. Handle the Load event for MyForm.

2:To write code that initializes a form, what do you need to do?
  1. Write code in the New method after the InitializeComponent method call (if using Visual Studio .NET–generated code).

  2. Write code in the form's OnLoad method.

  3. Write code in the form's Dispose method.

  4. Both a and b.

3:To write code that is executed when a form closes, what do ...

Get Visual Basic® .NET by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.