Exercises

  1. To expand on the form events that occur when opening and closing forms, add code to the child1 and child2 forms to display a messages in each of the key events that occur when a form is created and when a form is destroyed.

  2. Using the Application class, create a new form that contains a ListBox control and add the following properties to it:

    • CommonAppDataPath

    • CommonAppDataRegistry

    • CompanyName

    • ExecutablePath

    • ProductName

    • ProductVersion

    • StartupPath

    • UserAppDataPath

    • UserAppDataRegistry

    Hint: After you add the ListBox control to the form, you need to add code in the Form_Load event using the following syntax:

    ListBox1.Items.Add(Application.CommonAppDataPath)
    ListBox1.Items.Add(Application.StartupPath)
    
  3. Using the Splitter control, the Panel control, and ...

Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days 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.