?
Solved

vc++ window forms - how do I underline one letter??

Posted on 2007-10-05
3
Medium Priority
?
213 Views
Last Modified: 2013-11-26
Hi,

One quick question.
In vc++ Window Forms Programming, how can I underline one letter in the text of button. If I have a button "NEW" and I want to underline "N" to indicate the shortcut..(ctrl + N). Does anyone know how to do this?

Thanks a lot
0
Comment
Question by:shinymoon
  • 2
3 Comments
 
LVL 45

Expert Comment

by:AndyAinscow
ID: 20023832
&New

Let the system do it for you.
0
 

Author Comment

by:shinymoon
ID: 20024704
Thx for reply....
Bt, it didn't work like that. It works if I'm doing that at menustripts but not with buttons. Are you sure that works?
0
 
LVL 45

Accepted Solution

by:
AndyAinscow earned 1500 total points
ID: 20026841
The &N should underline the N on a button.
Do you mean the underline isn't working or the event if you use keyboard.  If the event then use an 'accelerator' resource.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question