Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question

Status
Not open for further replies.

RoseV

Programmer
Mar 18, 2003
37
US
How can I get the list boxes on my form to NOT be blackened in?
 
Rose,

When you say "Blackened In", do you mean disabled?

If so, set the Enabled property to yes/True either in the properties dialog in Design view, or using code;

Me.MyListBox.Enabled = True

Hope this helps.

Leigh Moore
LJM Analysis Ltd
 
Yes, they are enabled already. All text boxes on the form are white with black writing, but the list boxes that are populated show up black with white writing. I never had this problem with list boxes when using them before - maybe I just got lucky.
 
Doesn't matter that it's a list box, whenever a control has focus, it will display the control contents in reverse.

Jim DeGeorge [wavey]
 
Hit submit too soon...

You would have to reverse the forground/background colors in OnFocus and change them back to whatever on LostFocus.

Jim DeGeorge [wavey]
 
No, the boxes are blackened in no matter what field the focus is on. It only happens on these list boxes.
 
Don't ever recall seeing this happen before. Are the properties for the list boxes set for ENABLE = YES and LOCKED = YES? I know that sometimes grays out a form control, but might make a list box's background color change. Haven't tried this myself...it was just a thought.

Jim DeGeorge [wavey]
 
Rose

"Those are set" and it was causing the problem and it's now fixed? Don't understand your last post.

Jim DeGeorge [wavey]
 
Those properties are set as you indicated and it still does not work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top