473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Unwanted hilight of text

Where fields contain text, I've noticed that when they are first opened in a
form, all the text is hilighted. How do I avoid this? ... it's not
desperately important, but irritating! (I think it may be only memo fields)
Nov 13 '05 #1
2 1311
DFS
JohnM wrote:
Where fields contain text, I've noticed that when they are first
opened in a form, all the text is hilighted. How do I avoid this? ...
it's not desperately important, but irritating! (I think it may be
only memo fields)


You can add this to the OnEnter event of the field:

'MOVE CURSOR TO END
If Trim(fieldName) <> "" Then
fieldName.SelStart = Len(fieldName)
End If

'MOVE CURSOR TO BEGINNING
If Trim(fieldName) <> "" Then
fieldName.SelStart = 0
End If
Nov 13 '05 #2
JohnM wrote in message <di*******************@news.demon.co.uk> :
Where fields contain text, I've noticed that when they are first opened in a
form, all the text is hilighted. How do I avoid this? ... it's not
desperately important, but irritating! (I think it may be only memo fields)


In Tools | Options - the keyboard tab, there are some selections for
behaviour entering field. You can toggle that to make general changes
of this behaviour.

--
Roy-Vidar

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: StopBsod | last post by:
Hello group, I use XSLT to output a unix shell script based on the content of an XML file : The XSLT : <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">...
2
by: Mark | last post by:
Hi - if I have a string, "wine", how do I search through a droplist box, and automatically select the item that has "wine" as the text (nb. the value field will not be the same as the text)? eg:...
4
by: David Beck | last post by:
I donwnload some files for processing every day that have unwanted characters in them. In VB6 I use the InputB to read in the text and the StrConv. vLinesFromFile =...
1
by: Chris Kettenbach | last post by:
Good Morning, I have a text box on a webform I use to display a phone number. The database field does not contain parentheses or hyphens. I want the use to be able to change the textbox text and...
5
by: Li Pang | last post by:
Very basic question, how to hilight an item (row) on datagrid or listview controls? Thanks Li
3
by: Jeff Calico | last post by:
Hello everyone I am transforming an XML document to text, basically only outputting a small portion of it. When I run the following XSLT via Xalan's processor, I get a bunch of unwanted blank...
3
by: et | last post by:
How can I strip out unwanted characters in a string before updating the database? For instance, in names & addresses in our client table, we want only letters and numbers, no punctuation. Is...
0
by: CuongVu | last post by:
I have a DataGrid that I wan to Hilight a column! How can I do it? thanks and best regards,
3
by: Joe Stateson | last post by:
I have a template field that contains filenames that are (or can be) on a unix system. The hypen (and others) is a valid filename character in unix. When I display the name of the file I get an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.