Underline in TextBoxes

  • Thread starter Thread starter Brent McIntyre
  • Start date Start date
B

Brent McIntyre

Good afternoon all,

I have a very basic problem, I am using the '&' symbol in
multiple textboxes to denote 'and', unfortunately the
computer doesn't understand this and keeps on underlining
the next character after the '&' symbol.

I have looked through help, both in-built and on-line and
have been unable to come up with a resolution to this
issue. If you could provide any help that doesn't result
in me having to program in the text for each of these
boxes it would be much appreciated.

Yours sincerely,

Brent McIntyre
 
I think don't mean to say "TEXTBOX" because you can put "&" in textbox's
text property. Yes it do happen in Button, Checkbox, Radi Button etc. etc.
's Text Property.

For example if Button1's Text property is: E&XIT then there would be
UnderLine under "X". If you don't want to display understand and just want
to display & character you can use "&&" (twice).
 
* "Brent McIntyre said:
I have a very basic problem, I am using the '&' symbol in
multiple textboxes to denote 'and', unfortunately the
computer doesn't understand this and keeps on underlining
the next character after the '&' symbol.

I have looked through help, both in-built and on-line and
have been unable to come up with a resolution to this
issue. If you could provide any help that doesn't result
in me having to program in the text for each of these
boxes it would be much appreciated.

The textbox won't display the mnemonic underlined. If the text is
displayed in a label, the mnemonic will be underlined. You can turn
this off by setting the label's 'UseMnemonic' property to 'False'.
 
-----Original Message-----
* "Brent McIntyre" <[email protected]> scripsit:

The textbox won't display the mnemonic underlined. If the text is
displayed in a label, the mnemonic will be underlined. You can turn
this off by setting the label's 'UseMnemonic' property to 'False'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
.

Instead of giving single & give two &&.
i.e. Hai you && me
 
Thanks Herfried,

This was exactly what I was after, unfortunately I got mixed up with
TextBox and Labels !

Thank you also to everyone that helped it is much appreciated.

Yours sincerely,

Brent McIntyre
 
Back
Top