mtelligent

View Original

Exam 70-553 - Add and configure a Windows Forms control.

Section 3

  • Part 1
    • Topic 2

Add and configure a Windows Forms control.

  • Use the integrated development environment (IDE) to add a control to a Windows Form or other container control of a project at design time.
  • Add controls to a Windows Form at run time.
  • Configure controls on a Windows Form at design time to optimize the UI.
  • Modify control properties.
  • Configure controls on a Windows Form at run time to ensure that the UI complies with best practices.
  • Create and configure command controls on a Windows Form.
  • Create and configure text edit controls on a Windows Form.
  • Create and configure text display controls on a Windows Form.
  • Use the LinkLabel control to add Web-style links to Windows Forms applications.
  • Provide a list of options on a Windows Form by using a ListBox control, a ComboBox control, or a CheckedListBox control.
  • Configure the layout and functionality of a Windows Form to display a list of items.
  • Implement value-setting controls on a Windows Form.
  • Configure a WebBrowser control.
  • Add and configure date-setting controls on a Windows Form.
  • Display images by using Windows Forms controls.
  • Configure the NotifyIcon component.
  • Create access keys for Windows Forms controls.

Summary

There is a lot of simple stuff here. Design time modification of controls, positioning on the form, see some of the resources if you are unclear on any of these concepts

Adding Controls to the Form at run time can be accomplished through declaring and initializing a control and then passing it to the Forms, Controls.Add Method.

Be familiar with all the basic command controls: Button, LinkLabel, NotifyIcon, and ToolStrip.

Be familiar with the basic text edit controls: TextBox, RickTextBox and MaskedTextBox. The MaskedTextBox is another new control to 2.0 that lets you easily apply input masks (social security number, zip code, phone number etc)

Be familiar with the basic text display controls: Label, LinkLabel, StatusStrip and Progress Bar

The LinkLabel Control actually exposes a collection of hyperlinks. In order to make it do anything, you need to program its click event and use the event args to find out which link was clicked and respond accordingly.

Be familiar with the basic list controls: CheckedListBox, ComboBox, DomainUpDown, ListBox, ListView, NumericUpDown, and TreeView.

Be familiar with the basic value controls: Checkbox, CheckedListBox, RadioButton, and Trackbar.

The web browser control is a new control with .Net 2.0 that is basically the same as the IE Browser ActiveX component that you may be used to working with.

Be familiar with the date setting controls: DateTimePicker and MonthCalendar.

Be familiar with the Picturebox Control for displaying Images.

The NotifyIcon Control is another Control new to .Net 2.0 that allows you to easily display an icon in the system tray and respond to events on it.

The access key is the underline character in the text of a menu, button or label. To create an access key, simply prefix the letter with an ampersand.

Other Resources & Links:

Windows Forms Quickstart Tutorial
http://samples.gotdotnet.com/quickstart/winforms/doc/default.aspx

Windows Forms Controls
http://www.codeguru.com/csharp/sample_chapter/article.php/c11213/

Controls and Components by Function
http://msdn2.microsoft.com/en-us/library/xfak08ea.aspx

Adding Controls to Windows Forms at Runtime
http://www.c-sharpcorner.com/winforms/DynamicControlsCBNov13.asp

Understanding and Using the LinkLabel Control
http://www.c-sharpcorner.com/Code/2002/Nov/LinkLabel.asp

Checked List Box Sample in C#
http://www.c-sharpcorner.com/Code/2005/May/CheckedListBox.asp

Windows Forms WebBrowser Control
http://www.c-sharpcorner.com/Code/2004/Sept/WebBrowserControl.asp

Notify Icon control in .Net 2.0 with balloon tips
http://www.codeproject.com/dotnet/notifyiconcontrol20.asp

How-To: Create Access Keys for Windows Forms Controls
http://msdn2.microsoft.com/en-us/library/az5a73z1.aspx