Re: Odd behaviour of label controls??

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: JohnK (johnk_at_nomailback.com)
Date: 02/23/04


Date: Mon, 23 Feb 2004 16:05:49 +0100

Thanks,
I did not think of the Use Mnemonic property.

John

"Veign" <NOSPAMinveign@veign.com> schreef in bericht
news:uHFnNtz9DHA.2324@tk2msftngp13.phx.gbl...
> Options:
>
> - Set the UseMnemonic property to False
> - Double up on the &'s
> Like "Red && Green" will display Red & Green
>
> --
> Chris Hanscom
> MVP (Visual Basic)
> http://www.veign.com
> Application Design Section
> http://www.veign.com/information/application/info_app.html
> ------
> "JohnK" <johnkeystone@Surehotmailuseit.com> wrote in message
> news:4035317d$0$144$3a628fcd@reader2.nntp.hccnet.nl...
> > Hi,
> >
> > I found a strange problem, that I did not expect to happen.
> > When filling a label control with text (control's Autosize=true) all
works
> > well, except one character, the ampersand '&'.
> > When the text is something like "blue & green" in the label it wil be
> "blue
> > _ green" or "a&b" will show an "a" directly followed by an underlined
"b".
> > Ok, I understand that that is normal behaviour in the develop
environment
> of
> > VB6, for e.g. the text on a command button, but I did not expect it on a
> > textlabel at runtime. I made a workaround by using
> > MyTextLabel = Replace(MyTextlabel,"&","&&",1,,vbBinaryCompare)
> > and this works fine, but I still think it should not be like that.
> > Are there any other options? And I do not mean using an other control,
> like
> > TextBoxes etc.
> >
> > Best regards,
> >
> > John
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.580 / Virus Database: 367 - Release Date: 6-2-2004
> >
> >
>
>

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 6-2-2004

Quantcast