Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / October 2005

Tip: Looking for answers? Try searching our database.

Colour of active control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Damon - 14 Oct 2005 22:17 GMT
My form is black with white lettering. When one of my controls gets focus it
turns into a white box, totally obliterating the text. Is there any way of
changing the colour of the focused control?
Rick Brandt - 14 Oct 2005 22:57 GMT
> My form is black with white lettering. When one of my controls gets
> focus it turns into a white box, totally obliterating the text. Is
> there any way of changing the colour of the focused control?

Transparent background is ingnored for the control with focus in which case the
background color as defined in design view of the form kicks in.  Just change
the BackColor to what you want.  This will turn transparent off so you need to
reset that afterwards.

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

fredg - 14 Oct 2005 23:02 GMT
> My form is black with white lettering. When one of my controls gets focus it
> turns into a white box, totally obliterating the text. Is there any way of
> changing the colour of the focused control?

I don't quite follow you, as the standard Access behavior, when a
control gets focus, is to reverse the back and fore colors, so instead
of white print on black, you would get black print on white.

However, you can change the colors of a control when you enter that
control if you wish.

Code the control's GotFocus event:
Me![ControlName].BackColor = vbRed
Me![ControlName].Forecolor = vbYellow

Then also code the control's LostFocus event:
Me![ControlName].BackColor = vbBlack
Me![ControlName].Forecolor = vbWhite

Change the colors to whatever you want.

Do the same for each control.

Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.