Library sample chapters

Introduction to Windows Forms

Summary

In this chapter you have progressed from the simplest Windows Forms application to relatively complex menu and event handler operations. You've seen how the Delegate system replaces the message map or the WndProc for message routing in your application, and you've seen a little of the basic .NET framework for GUI components. Coming up in Chapter 3.2 "User Interface Components," we'll deal with a selection of the more commonly used Windows Forms components and show you how to lay these items out for use in your forms and dialogs.

Comments

  1. 13 Aug 2008 at 19:50

    Actually all you have to do in place an ampersand before the letter you want underlined.

    So if you want the "r" in "Print" underlined, enter in the code:

    "P&rint"

    That's it.

  2. 15 Jul 2005 at 22:27
    this is not a programming issue and it is not something you can set unless you have a custom menu control.

    if you want to view the _ all the time for alt shortcuts you have to go to:

    display properties->appearance->effects

    and uncheck the "Hide underlined charactors for keyboard navigation until I press the ALT key" checkbox.

    these instructions are for XP SP2 Pro build 2600
  3. 15 May 2003 at 06:43

    The "" on the short-cut character is visible only when "ALT" is pressed. Is it possible to display the "" programatically???

  4. 01 Jan 1999 at 00:00

    This thread is for discussions of Introduction to Windows Forms.

Leave a comment

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback