.NET - Windows Controls

29.
What does the Checked property of the DateTimePicker control do?
The Checked property holds either true or false value. It holds true, when the Value property hold a valid date-time value and is updatable; otherwise, false.

30.
Name the classes used to handle standard menu in a MenuStrip control.
The two main classes used to handle standard menu in a MenuStrip control are:
  • MenuStrip - Acts as a container for the menu structure of a form.
  • ToolStripMenuItem - Supports the items in a menu system (including the menus, such as File and Edit).

31.
How can you attach a horizontal scroll bar with the ListBox control?
You need to set the the MultiColumn property of the ListBox control to True to attach a horizontal scroll bar with it.

32.
What is the difference between the Add() and Insert() methods of a ListBox control?
The Add() method simply adds an item into the list box; whereas, the Insert() method inserts an item at the specified index.