Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Font Color when VB Field is disabled ?

Posted on 2005-03-24
2
Medium Priority
?
302 Views
Last Modified: 2013-12-03
hi, the VB font is light grey, when its field is disabled. How can i have bold/strong color font, when the field is disabled ?
0
Comment
Question by:Fiacre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 23

Accepted Solution

by:
gecko_au2003 earned 200 total points
ID: 13625856
From what I have experienced I am not sure if this is possible, unless you know how to over ride it via wm_paint or something like that. Only other thing I can think of is maybe look around the properties to see if it will let you change the colour of the font when it is disabled.

Other then that instead of using disabled there is another option which is simmiliar that you can use , I think it is called Locked, try that instead and see if you can change the font colour etc when it is locked and set the enabled back to true :)
0
 
LVL 23

Expert Comment

by:gecko_au2003
ID: 13626784
Use a text box and set its back colour to vbButtonFace, Set the border style to None, set the forecolour to the font colour you require or want. Then set the locked property to true, that will make it appear like a label and will give you the options to format it ie bold, font, font size, colour etc. You might need to adjust the size of the textbox to accomodate your needs though :)
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question