Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Commands enable you to implement much of this functionality. By using commands, you can assign a command to the Command property of each menu item. When that command is unavailable, as determined by the handler for its binding’s CanExecute event, the corresponding menu item will be disabled. Shortcut keys and mouse gestures can be added to the InputGestures collection of the command, and these will be inactivated as well when the command is unavailable.
To implement auto-fill functionality in your TextBox controls, you can handle the TextBox.KeyDown event. In this event, you can test whether appropriate keystrokes have been entered and then complete the entry automatically as necessary.