III: Windows Form Controls

III: Windows Form Controls

When working with Windows Forms, you have 46 default Toolbox controls available for use. The following, alphabetically sorted list provides a simple description of each to help you choose which is best for the task at hand.

All items noted as components have no form-visible interface, and their actions must be manipulated in code. Here goes <breathe in> :

  1. Button: Standard button the user can click to perform actions.

  2. CheckBox: Allows the user to check an On or Off option.

  3. CheckedListBox: Displays a list of items with a checkbox next to each.

  4. ColorDialog: Component, allows the user to select a color from a dialog box.

  5. ComboBox: Displays a list of options in a drop-down box.

  6. ContextMenu: Component, allows you to create a pop-up menu.

  7. CrystalReportViewer : Executes and displays a Crystal Report document.

  8. DataGrid: Displays tabular data from a DataSet, plus allows for updates.

  9. DateTimePicker: Allows the user to select a single date from a list of dates or times.

  10. DomainUpDown: Displays strings that a user can browse through and select from.

  11. ErrorProvider: Component, highlights errors in a user-friendly manner.

  12. FontDialog: Component, allows the user to select a font via a dialog box.

  13. GroupBox: Acts as a visible container for other controls.

  14. HelpProvider : Component, associates an HTML help file with a Windows application.

  15. HScrollBar and VScrollBar : Horizontal and vertical scroll bars, to allow for programmatic scrolling through a list of items.

  16. ImageList : Component, stores images for use on other controls, such as the ToolBar and TreeView.

  17. Label: Displays read-only text.

  18. LinkLabel: Displays a Web-style link with a click event.

  19. ListBox: Allows the user to select one or more items from a list.

  20. ListView: Displays a list of items with icons, Windows Explorer-style.

  21. MainMenu: Displays application menus .

  22. MonthCalendar: Allows the user to select a date or range of dates from a month-by-month calendar.

  23. NotifyIcon: Allows you to add icons to the system taskbar.

  24. NumericUpDown : Displays a predetermined set of numbers that the user can browse through and select from.

  25. OpenFileDialog: Component, allows users to select files to open via a standard dialog box.

  26. PageSetupDialog : Component, displays a dialog box allowing the user to change page setup details for printing.

  27. Panel: Provides grouping of controls, such as RadioButton controls.

  28. PictureBox: Displays graphics in BMP, GIF, JPEG, WMF, and ICO format.

  29. PrintDialog: Component, allows user to select a printer, the number of pages to print, and other settings via a standard dialog box.

  30. PrintDocument : Component, allows user to set properties that describe what to print and then to actually print it.

  31. PrintPreviewControl : Allows you to display a PrintDocument as it will appear when printed, without any user interface extras.

  32. PrintPreviewDialog : Component, displays a PrintDocument in a dialog box, as it will appear when printed, alongside options to print, zoom, and move between pages.

  33. ProgressBar: Indicates the progress of an operation graphically.

  34. RadioButton : Allows the user to select an option from two or more exclusive buttons .

  35. RichTextBox : Allows users to enter, display, and manipulate text with formatting.

  36. SaveFileDialog : Component, allows the user to specify a save filename via a standard dialog box.

  37. Splitter : Allows the user to resize a docked control, typically used for splitting forms into two components.

  38. StatusBar : Displays status information, typically at the bottom of a form.

  39. TabControl : Displays multiple tabbed pages, each containing their own controls.

  40. TextBox : Allows editable, multiline input from the user.

  41. Timer : Component, raises an event to run your code at specified intervals.

  42. ToolBar : Displays menus and picture buttons that activate commands.

  43. ToolTip : Component, displays text when the user hovers the mouse over controls.

  44. TrackBar : Displays a bar for the user to position, perhaps for setting a numeric value or navigating through a large amount of information.

  45. TreeView : Displays a hierarchy of items that can be expanded and collapsed , Windows Explorer-style.

<breathe out>

You can add extra controls by right-clicking on the Toolbox, selecting Customize Toolbox , and using the popup dialog to choose the COM and .NET controls you wish to add.

The Ultimate VB .NET and ASP.NET Code Book
The Ultimate VB .NET and ASP.NET Code Book
ISBN: 1590591062
EAN: 2147483647
Year: 2003
Pages: 76
Authors: Karl Moore

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net