dbTalk Databases Forums  

Highlight text in text box

comp.database.ms-access comp.database.ms-access


Discuss Highlight text in text box in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ShyGuy
 
Posts: n/a

Default Highlight text in text box - 08-22-2004 , 12:54 PM






I want to highlight any existing text, in a text box, when I click on
it, like when I Tab into the text box. I can't find anything in the
help.

Any help is appreciated

ShyGuy

Reply With Quote
  #2  
Old   
Ramesh Kumar Bhandari
 
Posts: n/a

Default Re: Highlight text in text box - 08-23-2004 , 03:39 AM






You can use selstart and sellength properties of a textbox in order to
select any existing text. In order to select the whole text of
textbox01, use,
me.textbox01.selstart=0
me.textbox01.sellength=len(nz(me.textbox01))

Regards,
Ramesh

ShyGuy <shyguy (AT) shytown (DOT) com> wrote

Quote:
I want to highlight any existing text, in a text box, when I click on
it, like when I Tab into the text box. I can't find anything in the
help.

Any help is appreciated

ShyGuy

Reply With Quote
  #3  
Old   
ShyGuy
 
Posts: n/a

Default Re: Highlight text in text box - 08-24-2004 , 06:18 PM



I tried to send this twice and couldn't figure out why it wasn't
showing up. The I checked and realized that it was going to your
email address. Don't know why.. anyway...

Thank you very much. That works great with my text box. I tried it
with a combo box but it didn't work. I tried adding SelText but it
still didn't work. Any suggestions would be greatly appreciated.

ShyGuy

On 23 Aug 2004 01:39:41 -0700, bhandaritwo (AT) yahoo (DOT) com (Ramesh Kumar
Bhandari) wrote:

Quote:
You can use selstart and sellength properties of a textbox in order to
select any existing text. In order to select the whole text of
textbox01, use,
me.textbox01.selstart=0
me.textbox01.sellength=len(nz(me.textbox01))

Regards,
Ramesh

ShyGuy <shyguy (AT) shytown (DOT) com> wrote

I want to highlight any existing text, in a text box, when I click on
it, like when I Tab into the text box. I can't find anything in the
help.

Any help is appreciated

ShyGuy


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.