Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2005

Tip: Looking for answers? Try searching our database.

UseMnemonic

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Siu - 14 Feb 2005 08:17 GMT
Hi,
does a property UseMnemonic exist for a Button control?? I've created a
button with this property:

Button.Text = "&Add new record";
Button.Name = "btnMyButton";

The & should allow a easy access with the keyboards... but it doesn't work:
with Label is easy thanks to the UseMnemonic property, but how about Button
control? Does it exist something similar?

Thanks.
Morten Wennevik - 14 Feb 2005 09:48 GMT
Hi Siu,

Buttons don't have the UseMnemonic property, but they still have the  
behaviour you want.

Your button should have a line under A.  It should respond to [ALT]+[A]  
and trigger a Click event.  (Note that you need to attach a click event to  
the button or nothing will happen)

Signature

Happy Coding!
Morten Wennevik [C# MVP]

Siu - 14 Feb 2005 10:21 GMT
Thanks,
I was convinced that I could access the button by touching the key Ctrl+A
instead of Alt+A

Thank you again

> Hi Siu,
>
[quoted text clipped - 4 lines]
> and trigger a Click event.  (Note that you need to attach a click event to  
> the button or nothing will happen)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.