Adding a Calendar component to a form

  1. With the form open, go into Design Mode.
  2. From the Toolbox, select Calendar.
  3. Perform one of these actions:
    • Single-click in the form to draw the calendar at its default size.
    • Click in the form where you want one corner of the calendar to be, hold down the mouse button and drag the cursor to draw the calendar to the size you want.
  4. From the Component property sheet, under Data Source, click in the Binding option and click the ellipses at the right to open the Edit Component Data Binding dialog box.
  5. In the Type field, select Calendar and click Edit .
  6. In the Calendar Settings dialog box, specify the calendar settings.  
  7. Click OK.
  8. Save your changes to the form and exit Design Mode.
相关主题