Visual C# | Creating forms exercise | Creating a simple form with tooltips

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Software ==> Visual C#  (79 exercises)
Version ==>
Topic ==> Creating forms  (4 exercises)
Level ==> Relatively easy
Subject ==> C# training

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Create a form called frmStarSignBasic, allowing you to input a star sign's details:

Visual C Sharp 2005 exercise - Creating forms (image 1)

Your form should include tooltips, as shown here

Make sure that the following work:

  • Pressing TAB takes you through the controls in the correct order
  • The accelerator keys work correctly (for example, ALT + S takes you to the Star sign textbox
  • The ENTER and ESC keys choose the correct default buttons

Attach code to the buttons so that the Cancel button closes down the form, and the Show button displays what you have typed in - for example:

Visual C Sharp 2005 exercise - Creating forms (image 2)

Guess when the author of this exercise was born?

Check that the tab order of your form is correct, then save it and close it down.

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post