🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #98

& in label fields in VB

#98
From: Steve Aliamus
Date: Tue, 04 Aug 1992 23:35
20 lines
1351 bytes
I am using Visual Basic to create a form that will display data
in a label field.  The data is unformatted text, and many times
includes the "&" character, causing the next character to be underlined.
So, instead of "A&B" displaying in the label field, I get "AB".
                                                            -
Is there a way to tell a label field to *not* draw an underline when
it sees an "&"?  My workaround up to this point is to create text
fields that cannot be tabbed to, or to simply change a single "&" to
"&&" before assigning the label.caption.  But, I'd really like to use
label fields if possible, especially since one form I've developed
already has 50+ such fields.

Any ideas would be appreciated.

Thanks

Steve Aliamus                       |  Phone: 415-857-7927
Hewlett-Packard                     |    FAX: 415-857-4586
3000 Hanover Street MS 20CAA        | HPDesk: HP0000/49
Palo Alto, California, USA  94304   |   UNIX: aliamus@corp.hp.com
Technical Details
Message-ID: <70560001@hpcc01.corp.hp.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!hpcc05!hpcc01!aliamus

Show Full Headers
Complete Article Headers
From: aliamus@hpcc01.corp.hp.com (Steve Aliamus)
Date: Tue, 4 Aug 1992 23:35:50 GMT
Subject: & in label fields in VB
Message-ID: <70560001@hpcc01.corp.hp.com>
Organization: Hewlett-Packard, Palo Alto, California
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!hpcc05!hpcc01!aliamus
Newsgroups: comp.os.ms-windows.programmer.tools
Lines: 20