Chapter 24 Accessibility 1227 6 using System.Collections; 7 (Web site traffic)
Chapter 24 Accessibility 1227 6 using System.Collections; 7 using System.ComponentModel; 8 using System.Windows.Forms; 9 using System.Data; 11 // helps users navigate form with aid of audio cues 12 public class TextToSpeech : System.Windows.Forms.Form 13 { 14 private System.Windows.Forms.Label nameLabel; 15 private System.Windows.Forms.Label phoneLabel; 16 17 private System.Windows.Forms.TextBox nameTextBox; 18 private System.Windows.Forms.TextBox phoneTextBox; 19 private System.Windows.Forms.TextBox passwordTextBox; 21 private System.Windows.Forms.Button submitButton; 22 23 private System.Windows.Forms.Label passwordLabel; 24 25 private AxHTTSLib.AxTextToSpeech speaker; 26 27 private System.ComponentModel.Container components = null; 28 29 // default constructor public TextToSpeech() 31 { 32 InitializeComponent(); 33 34 // set Form to be visible to accessibility applications 35 this.IsAccessible = true; 36 37 // let all controls be visible to accessibility applications 38 foreach ( Control current in this.Controls ) 39 current.IsAccessible = true; } 41 42 private void InitializeComponent() 43 { 44 this.nameLabel.AccessibleDescription = “User Name”; 45 this.nameLabel.AccessibleName = “User Name”; 46 this.nameLabel.TabIndex = 5; 47 this.nameLabel.MouseHover += 48 new System.EventHandler( this.controls_MouseHover ); 49 this.phoneLabel.AccessibleDescription = 51 “Phone Number Label”; 52 this.phoneLabel.AccessibleName = “Phone Number Label”; 53 this.phoneLabel.TabIndex = 6; 54 this.phoneLabel.MouseHover += 55 new System.EventHandler( this.controls_MouseHover ); 56 57 this.nameTextBox.AccessibleDescription = 58 “Enter User Name”; Fig. 24.13 Fig. 24.1FiFig. 24.13g. 24.13 Fig. 24.13 Application with accessibility features. (Part 2 of 4.)
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.