474,047 Members | 3,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1331
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.SelSt art = Len(fieldName)
End If

'MOVE CURSOR TO BEGINNING
If Trim(fieldName) <> "" Then
fieldName.SelSt art = 0
End If
Nov 13 '05 #2
JohnM wrote in message <di************ *******@news.de mon.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
2240
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"> <xsl:output method="text"/> <xsl:template name="haut" match="/rhythmdb">
2
2437
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: ChooseOne Food SoftDrink Wine
4
3337
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 = StrConv(InputB(LOF(nFileNumGENERIC), nFileNumGENERIC), vbUnicode) If the string has any unwanted characters (e.g. Chr(26)), I use the replace to remove them and save the file.
1
1862
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 be able to click an update button to save the changes to the database? My question is how do I remove the unwanted characters and save that value to the database? I use a function in the text attribute of the control to set the display value....
5
1438
by: Li Pang | last post by:
Very basic question, how to hilight an item (row) on datagrid or listview controls? Thanks Li
3
3726
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 lines in the output. Here is a simplified XML and XSLT: (Note the problem does not happen when testing in XMLSpy) - - - - - - - - - - - - - - - - - - - - - - - -
3
2596
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 there a way to do this?
0
970
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
4015
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 unwanted break and the text wraps at the hyphen. NavigateUrl bound to Eval("file_name","//acqlib/data/{0:c}") launches the file just fine since there is nothing wrong with the '-' on the linux system which is the acqlib server. But binding...
0
10548
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10349
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
12148
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11145
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
5423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4947
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.