473,466 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Underline in TextBoxes

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
Nov 20 '05 #1
5 3016
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" <br************@aep.salvationarmy.org> wrote in message
news:04****************************@phx.gbl...
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

Nov 20 '05 #2
* "Brent McIntyre" <br************@aep.salvationarmy.org> scripsit:
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'.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
-----Original Message-----
* "Brent McIntyre" <br************@aep.salvationarmy.org> scripsit:
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 isdisplayed in a label, the mnemonic will be underlined. You can turnthis 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
Nov 20 '05 #4
* "Srikanth" <an*******@discussions.microsoft.com> scripsit:
Instead of giving single & give two &&.
i.e. Hai you && me


That's an other way.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tim Daneliuk | last post by:
I am currently underling the first character of a menu title (to indicate its shortcut/accelerator key) like this: self.WildBtn = Menubutton(self.mBar, text=WILDMENU, underline=0, state=DISABLED)...
29
by: jmaxsherkimer | last post by:
the site we're working on has some anchor links, you click them they scroll to the bottom of the page with the answers to the questions linked on to. is there anyway to make it so that the links...
2
by: John A Grandy | last post by:
when using StringBuilder to build-up a block of text (which is then assigned to a Label control) is it possible to underline a portion of the text ? it would seem that...
2
by: Jeff | last post by:
hey asp.net 2.0 I have a HyperLink control on my webpage, I want this HyperLink to display a underline when mouse is hovering over it. This is NOT a html link, but a...
3
by: shapper | last post by:
Hello, How to make the underline of a link to be a dotted line like in this web site: http://www.iconbuffet.com/ Thanks, Miguel
4
by: Mr. Newt | last post by:
Hi y'all, I'm looking to put an underline under some links but not under others. I still want an underline when the link is hovered over. I've dabbled with classes for this, but all I can get...
3
by: DiMono | last post by:
Consider this code: <input type="button" value="u" style="text-decoration: underline;" /> With a complete doctype definition, Firefox will not render the underline, but IE will. With an...
2
by: Siv | last post by:
Hi, I want to print using the Graphics.Drawstring method but instead of using either bold or underline I want to combine both so the printed text is bold and underline?? The way I send the...
2
by: =?Utf-8?B?QmFydE1hbg==?= | last post by:
Greetings, I have a Label object defined in WPF xaml like the following: <Label Margin="0,5,0,17" Name="labelTestMsg"> <TextBlock > <Underline >My Test Message</Underline> </TextBlock>...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.