Hi,
Is there any way to make the shortcut (underlined character i.e."_" of a text on a button ) appear immediately after a form is loaded and make it stay visible with the button text throughout the life of that form
Hi,
Is there any way to make the shortcut (underlined character i.e."_" of a text on a button ) appear immediately after a form is loaded and make it stay visible with the button text throughout the life of that form
Hi, reenar,
Based on my understanding, you want to show the "_" mark inside your Windows Control, don't you
We usually add this mark with a "&".
For example, if we want to show a "Open" in the ToolStrip.
We can set its Text property to "&Open".
More info of shortcut key in Windows Application
http://support.microsoft.com/kb/839201
Hope this helps,
Regards
Hi !!
Yes this is exactly what I intended to do.
Thanx for the help.
But there is a problem
I cant view the underlining at run time
Hi, reenar,
It could work both in Design time and Run time.
Could you tell me how you add it to your control
Regards
Hie,
I simply changed the "ButtonView.Text" property of the Button from ''View" to "&View" to get " View" as the result.
The change can be seem in the design but after compling it disappears.
Hi, reenar,
Could you please check if there are any other codes which may change the Text property
And does it happen in your other projects
Regards
Yes, I have checked it on a new project as well.
I am working on ASP 2.0 windows application
Hi, reenar,
Do you mean you are developing .Net 2.0 WinForm application
In that case, I guess you should check your Visual Studio.
Here are some common steps to go.
1. Have you applied the latest service pack If not, please apply the service pack.
http://msdn2.microsoft.com/en-us/vstudio/bb265237.aspx
2. If we reboot the operating system to safe mode, do we have the problem This can help to isolate whether any other applications are interfering with Visual Studio. Note that some features (like IIS) are not available under safe mode. Please check whether this can apply or not. In addition to safe mode, we can also suggest ¡°clean boot¡±:
http://support.microsoft.com/kb/310353.
3. If we create a new user account, do we have the problem This can help to isolate user profile corruption related causes.
4. If we disable Add-ns (e.g. ¡°Tools¡± | ¡°Add-in Manager¡±) and run ¡°devenv.exe /safemode¡±, do we still have the problem This can eliminate the possibility that third party Add-ins are causing problems.
5. If we create a new project, do we have the problem Sometimes corrupted project settings can cause problems. These are project specific.
Hope this helps,
Regards
Yes, I have the latest service pack.
The problem persists even after creating a new user account and a new project as well.
and do i need to go for "clean boot" too !!
By the time I checkup with rest of the scenarios it would be of great help if you could search for any other reasons
for the same problem.
Thanx a lot
Hi,
Finally I managed to understand the problem.
The shortcuts get visible only after pressing "Alt" key.
Thanxs