-
Jul 9th, 2015, 05:46 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Label Forcolor - Color Only Numbers
Hi
Have a question coloring labels i have a label that i would only like to color the numeric values in the string red and the letters black or white is there a way to do this ?
thanks
-
Jul 9th, 2015, 05:50 PM
#2
Re: Label Forcolor - Color Only Numbers
No. You'll need to create a custom usercontrol or possibly use a RTF (richtext) control with no border and form backcolor to appear like a label. VB's label & textbox controls only support one color for text. Other options might be suggested...
-
Jul 9th, 2015, 06:00 PM
#3
Re: Label Forcolor - Color Only Numbers
Joacim Andersson has created a HyperLabel usercontrol that can do that and more.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Jul 9th, 2015, 11:09 PM
#4
Re: Label Forcolor - Color Only Numbers
A less full-featured alternative: RicherLabel UserControl.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|