Connecting Tech Pros Worldwide Forums | Help | Site Map

Is it possible to highlight text in a TextBox without setting focus on it?

Newbie
 
Join Date: Aug 2009
Posts: 6
#1: Aug 24 '09
Hi everyone,

Is it possible to highlight (a portion of the) text in a textbox without setting focus to it. What I'm interested is marking some portion of the text for reference while my cursor is still inside some other control.

ADezii's Avatar
Expert
 
Join Date: Apr 2006
Location: Philadelphia
Posts: 5,219
#2: Aug 24 '09

re: Is it possible to highlight text in a TextBox without setting focus on it?


Quote:

Originally Posted by geosmy View Post

Hi everyone,

Is it possible to highlight (a portion of the) text in a textbox without setting focus to it. What I'm interested is marking some portion of the text for reference while my cursor is still inside some other control.

Quote:
Is it possible to highlight (a portion of the) text in a textbox without setting focus to it.
To the best of my knowledge, this simply cannot be done.
Newbie
 
Join Date: Aug 2009
Posts: 6
#3: Aug 25 '09

re: Is it possible to highlight text in a TextBox without setting focus on it?


All I am looking is to emulate the behaviour of the built-in Seach Textbox in Access 2007 forms.

In this Textbox as one types Access marks in real time the first occurence of the search string inside the form fiels. This is done without losin focus on the search textbox and without the cursor leaving it.

Alternatively are there any available classes out there that customise this search textbox?
FishVal's Avatar
Expert
 
Join Date: Jun 2007
Location: Israel
Posts: 2,584
#4: Aug 25 '09

re: Is it possible to highlight text in a TextBox without setting focus on it?


If you are using A2007, then you may utilize rich text mode available for Textbox control in A2007.
Reply

Tags
access, control, highlight, no focus, text