By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,442 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

Selection In A Textbox

P: n/a
How can I turn the selection highlight off when I enter a textbox? I tried
setting SelLength to 0 but it still selected 1 character. Can I change the color
of the selection highlight?

I want to turn the backcolor of a textbox to blue in the OnEnter event but the
selection highlight interferes with what I want to do.

Thanks!

Mark
Nov 12 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Try setting SelStart to 0. Also, this can be done globally at

Tools|Options, Keyboard tab, Behavior entering field.

--
Wayne Morgan
Microsoft Access MVP
"Mark" <mm*****@earthlink.net> wrote in message
news:T3*******************@newsread3.news.atl.eart hlink.net...
How can I turn the selection highlight off when I enter a textbox? I tried
setting SelLength to 0 but it still selected 1 character. Can I change the color of the selection highlight?

I want to turn the backcolor of a textbox to blue in the OnEnter event but the selection highlight interferes with what I want to do.

Thanks!

Mark

Nov 12 '05 #2

P: n/a
Wayne,

Thanks for responding!

Setting SelStart gives the same results - first character is highlighted in
black and the cursor blinks.

Any other suggestions?

Mark
"Wayne Morgan" <co***************************@hotmail.com> wrote in message
news:qw*******************@newssvr31.news.prodigy. com...
Try setting SelStart to 0. Also, this can be done globally at

Tools|Options, Keyboard tab, Behavior entering field.

--
Wayne Morgan
Microsoft Access MVP
"Mark" <mm*****@earthlink.net> wrote in message
news:T3*******************@newsread3.news.atl.eart hlink.net...
How can I turn the selection highlight off when I enter a textbox? I tried
setting SelLength to 0 but it still selected 1 character. Can I change the

color
of the selection highlight?

I want to turn the backcolor of a textbox to blue in the OnEnter event but

the
selection highlight interferes with what I want to do.

Thanks!

Mark


Nov 12 '05 #3

P: n/a
I just tried it again, it works. In the Enter event of the textbox I placed

Me.NameOfTextbox.SelStart = 0

The cursor blinks just before the 1st character with no characters selected.
Without it, the entire contents of the textbox are selected.

--
Wayne Morgan
Microsoft Access MVP
"Mark" <mm*****@earthlink.net> wrote in message
news:Dd*****************@newsread1.news.atl.earthl ink.net...
Wayne,

Thanks for responding!

Setting SelStart gives the same results - first character is highlighted in black and the cursor blinks.

Any other suggestions?

Mark
"Wayne Morgan" <co***************************@hotmail.com> wrote in message news:qw*******************@newssvr31.news.prodigy. com...
Try setting SelStart to 0. Also, this can be done globally at

Tools|Options, Keyboard tab, Behavior entering field.

--
Wayne Morgan
Microsoft Access MVP
"Mark" <mm*****@earthlink.net> wrote in message
news:T3*******************@newsread3.news.atl.eart hlink.net...
How can I turn the selection highlight off when I enter a textbox? I tried setting SelLength to 0 but it still selected 1 character. Can I change
the color
of the selection highlight?

I want to turn the backcolor of a textbox to blue in the OnEnter event
but the
selection highlight interferes with what I want to do.

Thanks!

Mark



Nov 12 '05 #4

P: n/a
Wayne,

Thanks again!

That's not quite what I wanted. I don't want the blinking cursor. I did find
that if you right justify the field and set Me.NameOfTextbox.SelStart = <Max
Characters Expected In Textbox> that the cursor disappears.

Mark

"Wayne Morgan" <co***************************@hotmail.com> wrote in message
news:KM*******************@newssvr31.news.prodigy. com...
I just tried it again, it works. In the Enter event of the textbox I placed

Me.NameOfTextbox.SelStart = 0

The cursor blinks just before the 1st character with no characters selected.
Without it, the entire contents of the textbox are selected.

--
Wayne Morgan
Microsoft Access MVP
"Mark" <mm*****@earthlink.net> wrote in message
news:Dd*****************@newsread1.news.atl.earthl ink.net...
Wayne,

Thanks for responding!

Setting SelStart gives the same results - first character is highlighted

in
black and the cursor blinks.

Any other suggestions?

Mark
"Wayne Morgan" <co***************************@hotmail.com> wrote in

message
news:qw*******************@newssvr31.news.prodigy. com...
Try setting SelStart to 0. Also, this can be done globally at

Tools|Options, Keyboard tab, Behavior entering field.

--
Wayne Morgan
Microsoft Access MVP
"Mark" <mm*****@earthlink.net> wrote in message
news:T3*******************@newsread3.news.atl.eart hlink.net...
> How can I turn the selection highlight off when I enter a textbox? I tried > setting SelLength to 0 but it still selected 1 character. Can I change the color
> of the selection highlight?
>
> I want to turn the backcolor of a textbox to blue in the OnEnter event but the
> selection highlight interferes with what I want to do.
>
> Thanks!
>
> Mark
>
>



Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.