Lab: Create an Accessible User Interface in .NET

Paint QR Code ISO/IEC18004 in .NET Lab: Create an Accessible User Interface

Lab: Create an Accessible User Interface
Printing Quick Response Code In .NET Framework
Using Barcode creator for ASP.NET Control to generate, create Denso QR Bar Code image in ASP.NET applications.
www.OnBarcode.com
Bar Code Generator In .NET
Using Barcode creation for ASP.NET Control to generate, create barcode image in ASP.NET applications.
www.OnBarcode.com
In this lab, you will create an accessible user interface. You will set the Accessibility properties for the controls in your user interface, and you will add code to your appli cation to support high-contrast mode.
Denso QR Bar Code Generation In Visual C#.NET
Using Barcode generation for VS .NET Control to generate, create QR-Code image in VS .NET applications.
www.OnBarcode.com
QR Code 2d Barcode Generator In .NET
Using Barcode printer for VS .NET Control to generate, create Quick Response Code image in VS .NET applications.
www.OnBarcode.com
Exercise 1: Setting Accessibility Properties
Drawing QR In VB.NET
Using Barcode encoder for Visual Studio .NET Control to generate, create Denso QR Bar Code image in VS .NET applications.
www.OnBarcode.com
Print EAN 128 In .NET Framework
Using Barcode creation for ASP.NET Control to generate, create GTIN - 128 image in ASP.NET applications.
www.OnBarcode.com
1. In Visual Studio, create a new Windows Forms application.
Creating QR Code JIS X 0510 In .NET
Using Barcode creation for ASP.NET Control to generate, create Quick Response Code image in ASP.NET applications.
www.OnBarcode.com
Making EAN13 In Visual Studio .NET
Using Barcode maker for ASP.NET Control to generate, create EAN-13 Supplement 5 image in ASP.NET applications.
www.OnBarcode.com
Lesson 1: Implementing Accessibility
USS Code 128 Maker In VS .NET
Using Barcode drawer for ASP.NET Control to generate, create Code 128B image in ASP.NET applications.
www.OnBarcode.com
Make Barcode In Visual Studio .NET
Using Barcode generation for ASP.NET Control to generate, create barcode image in ASP.NET applications.
www.OnBarcode.com
2. Add the following controls and set the properties as shown here. Control Label1 Property Text Font.Size BackColor ForeColor Label2 TextBox1 Label3 TextBox2 Button1 Text TabIndex Text TabIndex Text TabIndex Button2 Text TabOrder Value Sign up for our mailing list!
Bar Code Generator In Visual Studio .NET
Using Barcode encoder for ASP.NET Control to generate, create barcode image in ASP.NET applications.
www.OnBarcode.com
Create EAN 8 In .NET
Using Barcode creator for ASP.NET Control to generate, create European Article Number 8 image in ASP.NET applications.
www.OnBarcode.com
Color.Blue
Code 128 Code Set C Creator In Objective-C
Using Barcode generation for iPad Control to generate, create Code128 image in iPad applications.
www.OnBarcode.com
Printing UCC - 12 In Objective-C
Using Barcode generation for iPhone Control to generate, create GS1 - 12 image in iPhone applications.
www.OnBarcode.com
Color.Yellow
Code 39 Extended Drawer In None
Using Barcode generator for Word Control to generate, create Code39 image in Microsoft Word applications.
www.OnBarcode.com
Encoding Quick Response Code In Objective-C
Using Barcode drawer for iPhone Control to generate, create Quick Response Code image in iPhone applications.
www.OnBarcode.com
Name
PDF417 Printer In C#
Using Barcode printer for Visual Studio .NET Control to generate, create PDF417 image in VS .NET applications.
www.OnBarcode.com
PDF 417 Creator In .NET Framework
Using Barcode generation for Reporting Service Control to generate, create PDF-417 2d barcode image in Reporting Service applications.
www.OnBarcode.com
Email Address
Printing UPC-A Supplement 5 In Java
Using Barcode maker for Java Control to generate, create GS1 - 12 image in Java applications.
www.OnBarcode.com
Printing Linear In Visual C#
Using Barcode maker for Visual Studio .NET Control to generate, create 1D image in .NET framework applications.
www.OnBarcode.com
Submit
Cancel
3. Set the accessibility properties for the form and controls as shown here.
Object Form1 Property AccessibleName AccessibleDescription Label1 AccessibleName AccessibleDescription Label2 AccessibleName AccessibleDescription TextBox1 AccessibleName AccessibleDescription Setting Mailing list form Mailing list form Title label Sign up for our mailing list! Name label Name label Name text box Enter your name here
12
Enhancing Usability
Object Label3
Property AccessibleName AccessibleDescription
Setting E-mail label E-mail label E-mail text box Enter your e-mail address here Submit button Press this button to submit the form Cancel button Press this button to cancel the form
TextBox2
AccessibleName AccessibleDescription
Button1
AccessibleName AccessibleDescription
Button2
AccessibleName AccessibleDescription
4. In the Designer, double-click the form to open the Form1_Load event handler. Add the following code to support high-contrast mode:
' VB If SystemInformation.HighContrast
Label1.BackColor = SystemColors.Control
Label1.ForeColor = SystemColors.ControlText
End If // C# if (SystemInformation.HighContrast) {
label1.BackColor = SystemColors.Control;
label1.ForeColor = SystemColors.ControlText;
5. Press F5 to run your application. Edit your computer s display properties and view the application. Note that the custom colors do not affect high-contrast mode. Also, note that the AccessibleName and AccessibleDescription properties you defined are not visible. However, they would be useful to users making use of accessibility aids.
Lesson Summary
Applications should be designed to support the principles of accessibility, including flexibility, a choice of input and output methods, consistency, and compatibility with accessibility aids.
Lesson 1: Implementing Accessibility
Applications should support the standard system settings. Using the system classes to access standard fonts and colors enables your application to work with accessibility aids that use system settings or the high-contrast setting. Accessible applications should be designed to have a variety of inputs, including documented keyboard access to all important features. No information should be conveyed by sound alone. Each control exposes several accessibility properties that are used by accessibil ity aids to gather and display information. You can set accessibility properties at design time in the Properties window.
Lesson Review
The following questions are intended to reinforce key information presented in this lesson. The questions are also available on the companion CD if you prefer to review them in electronic form.
NOTE
Answers
Answers to these questions and explanations of why each choice is right or wrong are located in the Answers section at the end of the book.
1. Which of the following are principles of accessible design (Choose all that apply.) A. Flexibility B. Consistency C. Simplicity D. Compatibility with accessibility aids 2. Which of the following is not a best practice for implementing accessibility A. Provide audio for all important information. B. Support standard system settings. C. Ensure compatibility with high-contrast mode. D. Provide keyboard access to all important functionality.
12
Enhancing Usability
Lesson 2: Using User Assistance Controls and Components
The .NET Framework contains many controls and components that can be used to enhance the usability and usefulness of your application. Controls such as the StatusStrip and ProgressBar allow you to convey information to the user in a variety of ways; the HelpProvider, ErrorProvider, and ToolTip components allow you to offer user assis tance; and other components enable you to add a greater depth of functionality to your applications. In this lesson, you will learn how to enhance your application with user assistance controls and components.
After this lesson, you will be able to:
Configure the PropertyGrid component. Configure the ProgressBar control to indicate progress graphically. Display status information using the StatusStrip control. Configure the ToolTip component. Configure the ErrorProvider component. Configure the HelpProvider component. Play system sounds and audio files by using the SoundPlayer. Configure the Timer component to raise an event at regular intervals. Enable scrolling by using the HScrollBar and VScrollBar controls.
Copyright © OnBarcode.com . All rights reserved.