Adding Controls to a Form

A control helps you create objects on a form, such as labels, buttons, and lists. You can give the object different property values, create events, and perform certain actions using methods.

The Windows CE Toolkit for Visual Basic 5.0 contains several controls. The intrinsic controls are displayed in the Toolbox.

    To add a control

  1. Start a new Windows CE project by starting Visual Basic 5.0, then clicking the Windows CE Project icon in the New Project dialog box.
  2. Click on a control in the Toolbox, and then move the mouse pointer to a location on the form where the control's top, left corner is to be placed.
  3. Hold the left mouse button down and move the mouse pointer down and to the right until the control is the size you desire.
  4. Release the left mouse button.

    To resize a control

  1. Single-click the control on the form to give it focus.
  2. Select a resizing handle.
  3. Hold the left mouse button down and move the mouse to change the size of the control.
  4. Release the left mouse button.

    To add a third-party control