Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2004, 06:53 PM
Authorized User
 
Join Date: Mar 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Color change possability?

Hi, I havent coded in VB for a while and am not sure if this was possible or not.

Is there a way to change partial letters in a label, without having multiple labels?.

For those of you who do html, Im asking about something like this:

<td style="color#000000;">
Hi this is <span style="color:#FF0000;">Rolandatem!</span>
</td>

I just want to have ONE label where some areas are different colored.

 
Old November 16th, 2004, 08:56 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Unless a third-party add-in can do that, Access does not allow for multicolored labels. My suggestion is create one using another program that allows it, turn that into an image (e.g. JPG), and then import that image into your form.

Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old November 19th, 2004, 03:52 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

instead of using a label, grab the OnPaint event and use multiple Me.Print statements setting me.forecolor

Me.currentx = set the left postion
me.currenty = set the top position
me.forecolor = vbblack
me.print "this is black "
me.forecolor = vbred
me.print = "this is red"

Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
change cell color martin1 Visual Basic 2005 Basics 2 October 4th, 2006 08:55 AM
re: color change jack_in_black ASP.NET 2.0 Professional 0 July 11th, 2006 07:24 AM
Change Cell Color phungleon HTML Code Clinic 2 April 9th, 2006 12:36 AM
how to change all control color ashish2001mca .NET Framework 2.0 1 February 23rd, 2005 12:47 AM
Recalculating upon color change bdancis Excel VBA 0 January 19th, 2005 10:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.