Making Your Windows Forms Applications Accessible to People with DisabilitiesMicrosoft Active Accessibility (MSAA) is a technology that makes computer programs more accessible to people who use accessibility aids. For developers, it also can expand the capabilities of testing tools and other specialized utilities. Detailed information on MSAA can be found at the MSAA web site. What Does Active Accessibility Do?Active Accessibility provides a standard way for accessibility aids to get information about user interface elements, and for programs to expose that information to the aids. For example, Active Accessibility provides these individual pieces of information:
It also provides the following:
How Does Windows Forms Help?MSAA defines an interface called IAccessible. This interface is the mechanism through which information is provided to accessibility aids. Windows Forms implements this interface for all of its controls and exposes a set of accessibility properties on each control (these can easily be set at design time or run time). This makes it much easier to build accessible applications. The properties are the following:
Windows Forms also maps other properties to their appropriate IAccessible properties - for instance, the HelpProvider property. The following code shows how to set the AccessibleName and AccessibleDescription properties on a TextBox. textBox1.Location = new System.Drawing.Point(16, 24) textBox1.Text = "Hello Windows Forms World" textBox1.AccessibleName = "TextEntryField" textBox1.TabIndex = 0 textBox1.AccessibleDescription = "Please enter some text in the box" textBox1.Size = new System.Drawing.Size(360, 20) VB
View and run this sample.
|