Textbox Backcolor

J

Joe Delphi

Hi,

I have a textbox on a form and I set the BackColor property to gray.
The form is set to display in DataSheet mode, when it displays, the
backcolor appears as the default white, which is not what I want. There
are other textboxes on the form, that I want to stay at the default setting
of white.

Can someone tell me how to set the Backcolor property so that it
stays set when the form is displayed in datasheet mode?


Thanks,
JD
 
F

fredg

Hi,

I have a textbox on a form and I set the BackColor property to gray.
The form is set to display in DataSheet mode, when it displays, the
backcolor appears as the default white, which is not what I want. There
are other textboxes on the form, that I want to stay at the default setting
of white.

Can someone tell me how to set the Backcolor property so that it
stays set when the form is displayed in datasheet mode?

Thanks,
JD

You can't.
When viewing a form in Datasheet view, the backcolor and forecolor (as
viewed in Single Form or Continuous Form view) are ignored.
Instead, the backcolors (as well as forecolors) are whatever is chosen
by the user (while in Datasheet view), by selecting Format + Fonts or
Format + Datasheet.
Every record and field in the datasheet has the same forecolor and
backcolor, (unless you are using conditional formatting).
 
D

Dirk Goldgar

Joe Delphi said:
Hi,

I have a textbox on a form and I set the BackColor property
to gray. The form is set to display in DataSheet mode, when it
displays, the backcolor appears as the default white, which is not
what I want. There are other textboxes on the form, that I want to
stay at the default setting of white.

Can someone tell me how to set the Backcolor property so that
it stays set when the form is displayed in datasheet mode?

Although you can't do it in datasheet view, you could design a
continuous forms view that would look a lot like a datasheet. You'd be
hard put to incorporate the special datasheet functionality, though,
like hiding and freezing columns.
 
L

Larry Daugherty

I wouldn't accept that achieving any effect on forms and on reports
couldn't be done unless Stephen Lebans joined the thread and said that
it couldn't. Check out his offerings at www.lebans.com You may get a
happy surprise.

My ignorance is vast and my experience is limited: I don't believe
that I've ever deployed an application with a Datasheet View enabled.
My choice has always been to use the continuous forms paradigm
detailed by Dirk. I use that a lot. It leaves control over most
aspects of the design in my hands.

Often the end effect we seek is available if we'll simply detach
ourselves from achieving it via a particular method.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top