Unselectable Control

  • Thread starter Thread starter Beatrix J B
  • Start date Start date
B

Beatrix J B

Hi .. how do i make control unclickable or unselectable .. I have a textbox
which displays a name of a person ... I don't want it to be selected by a
user ... i already configured .. tabstop = no ... and locked.... what if i
just want it displayed and would not react to any mouse overs ... i noticed
that when i click on it it changes inverse color which i don't like ...
.....

Thanks.
 
Doing this itself would have the effect of greying out the box. However if
you also set the "locked" property to yes then this would allow your textbox
to look like all the others while not allowing the user to enter, modify or
delete its contents
 
David Gartrell said:
Doing this itself would have the effect
of greying out the box. However if
you also set the "locked" property to yes
then this would allow your textbox
to look like all the others while not
allowing the user to enter, modify or
delete its contents

The reason that "greys out" the Text Box is to give the user a visual clue
that it canNOT be modified. Making it "look like all the others" can lead to
angry, frustrated users who _want_ to change it, or think they _need_ to
change it, but can't.

Larry Linson
Microsoft Access MVP
 
Beatrix,

One or two tricks I can suggest.

And if the “Greying Out” is not suitable, you can use the SetFocus method to
move the cursor out to another control. And a message box if necessary for
“angry, frustrated users”.

Or you can set the color of the background control as in the Form.

E.g. BackStyle, BackColor, SpecialEffect, BorderStyle, BorderColor, etc.
 
"Angry frustrated users" - LOL! No matter what we do someone will be
annoyed! I have a few controls set this way, but have a button next to the
field which they can click to open an "edit this field" form - once they got
used to this idea, they were quite pleased with it, as the fields I disable
and lock are vital to project management, and someone inadvertently
modifying those fields could be disastrous...

Garbage in = garbage out and all that

;-)
 
Back
Top