Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2: Case Scenario Answers > Case Scenario 2: Humongous Insurance User In...

Case Scenario 2: Humongous Insurance User Interface

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial