Does anybody know how to underline a character on a
tabcontrol's tab name, as in VB6 &Cancel will show a
shortcut underlined "C". Obviously you cannot do this
on .net tab.

What I want is to show shortcut underlined character so
that user will be able to use alt+'key' to switch the tab
pages.

I've created a shortcut by using form event handler. I
need to show some sign on the tab name and let user know
what the shortcut is.

Frank

Re: Can I underline character (shortcut ) on a tab? by hirf-spam-me-here

hirf-spam-me-here
Thu Jan 08 16:06:08 CST 2004

* "Frank" <Frank@discussions.microsoft.com> scripsit:
> Does anybody know how to underline a character on a
> tabcontrol's tab name, as in VB6 &Cancel will show a
> shortcut underlined "C". Obviously you cannot do this
> on .net tab.
>
> What I want is to show shortcut underlined character so
> that user will be able to use alt+'key' to switch the tab
> pages.

Did you see that in any other Windows application? I didn't see that.
Why not define menu items with shortcuts to provide this functionality?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Re: Can I underline character (shortcut ) on a tab? by Chuck

Chuck
Fri Jan 09 12:01:32 CST 2004

We have been doing that for years. Using a menu to enable
the shortcut doesn't solve Frank's problem totally. It
will support the "hot key" or shortcut and provide an
event to manage the tabs but it lacks the visual cue he
wants to provide his users.
>-----Original Message-----
>* "Frank" <Frank@discussions.microsoft.com> scripsit:
>> Does anybody know how to underline a character on a
>> tabcontrol's tab name, as in VB6 &Cancel will show a
>> shortcut underlined "C". Obviously you cannot do this
>> on .net tab.
>>
>> What I want is to show shortcut underlined character
so
>> that user will be able to use alt+'key' to switch the
tab
>> pages.
>
>Did you see that in any other Windows application? I
didn't see that.
>Why not define menu items with shortcuts to provide this
functionality?
>
>--
>Herfried K. Wagner [MVP]
><http://www.mvps.org/dotnet>
>.
>