Properties on Windows Forms Controls That Support Accessibility Guidelines
Controls on the standard toolbox for Windows Forms support many of the accessibility guidelines, including exposing the keyboard focus and exposing the screen elements.
Planning Ahead for Accessibility
The controls' properties can be used to support other accessibility guidelines as shown in the following table. Additionally, you should use menus to provide access to program features.
Control Property | Considerations for Accessibility |
---|---|
AccessibleDescription | The description is reported to accessibility aids such as screen readers. Accessibility aids are specialized programs and devices that help people with disabilities use computers more effectively. |
AccessibleName | The name that will be reported to the accessibility aids. |
AccessibleRole | Describes the use of the element in the user interface. |
TabIndex | Creates a sensible navigational path through the form. It is important for controls without intrinsic labels, such as text boxes, to have their associated label immediately precede them in the tab order. |
Text | Use the "&" character to create access keys. Using access keys is part of providing documented keyboard access to features. |
Font Size | If the font size is not adjustable, then it should be set to 10 points or larger. Once the form's font size is set, all the controls added to the form thereafter will have the same size. |
Forecolor | If this property is set to the default, then the user's color preferences will be used on the form. |
Backcolor | If this property is set to the default, then the user's color preferences will be used on the form. |
BackgroundImage | Leave this property blank to make text more readable. |
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET Desktop feedback