473,396 Members | 1,749 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,396 software developers and data experts.

Selected Text In Text Box

My textBox comes on with all the text selected. Setting "hide
selection" to "true" or using SelectedText or SelectedTextLength
will not stop the highlighting. How do I get rid of the text pre-
selection when the display comes on?
--
Many thanks,
Patrick.
Nov 15 '05 #1
3 7419
Are you talking about the standard TextBox Control from .NET? Or a 3rd party
control.
Because the .NET TextBox does not Select all text automatically.

"Patrick De Ridder" <00*@000.00> wrote in message
news:10***************@evisp-news-01.ops.asmr-01.energis-idc.net...
My textBox comes on with all the text selected. Setting "hide
selection" to "true" or using SelectedText or SelectedTextLength
will not stop the highlighting. How do I get rid of the text pre-
selection when the display comes on?
--
Many thanks,
Patrick.

Nov 15 '05 #2
On Thu, 16 Oct 2003 16:48:42 +0200, "Dan Cimpoiesu"
<da**********@gmx.net> wrote:
Are you talking about the standard TextBox Control from .NET? Or a 3rd party
control.
Because the .NET TextBox does not Select all text automatically.

"Patrick De Ridder" <00*@000.00> wrote in message
news:10***************@evisp-news-01.ops.asmr-01.energis-idc.net...
My textBox comes on with all the text selected. Setting "hide
selection" to "true" or using SelectedText or SelectedTextLength
will not stop the highlighting. How do I get rid of the text pre-
selection when the display comes on?


I am talking about a NET textBox that I am using in multi-line mode.
All the text comes on selected and I want to get rid of the selection.
--
Regards,
Patrick.
Nov 15 '05 #3
On Thu, 16 Oct 2003 18:43:45 +0200, Patrick De Ridder <00*@000.00>
wrote:
news:10***************@evisp-news-01.ops.asmr-01.energis-idc.net...
My textBox comes on with all the text selected. Setting "hide
selection" to "true" or using SelectedText or SelectedTextLength
will not stop the highlighting. How do I get rid of the text pre-
selection when the display comes on?


The text box is on a form, the form, in turn, is on a panel. I have
solved the problem by giving focus to the panel after displaying the
text. Thanks anyway.
--
Regards,
Patrick.
Nov 15 '05 #4

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

Similar topics

6
by: Edo van der Zouwen | last post by:
I have the following problem. On a website there's a (simple) feedback form. This is used also by Polish visitors who (of course) type Polish text using special characters. However, when I...
9
by: lkrubner | last post by:
I've got a function, you can see it below, that is being called onmouseup in the textarea on my main form. The idea is to find a selection if possible and store that text in a global variable. I...
0
by: Frank Xia | last post by:
How to highlight selected tab text? I only want the tab page text to be highlighted not the whole content on the page. I can't find a related property to be set. Need help here. Thanks a lot!
0
by: [Yosi] | last post by:
How can I change the selection text back ground color (ritchText). I successfully change the text color by : this.MessageRichTextBox.SelectionColor = Color.Red How can I change also the Back...
1
by: Suresh Tri | last post by:
Hi, I was trying to overload concat operator ||(text,text) such a way that it behaves like Oracle. i.e. I want 'abc' || null to return 'abc' instead of null. I know that it is not the expected ...
2
by: Johann Robette | last post by:
Hi, I'm trying to call the array_to_string function like this : SELECT array_to_string(array, '~^~') --> it comes directly from the doc. I get this error msg : ERROR: parser: parse error at...
4
by: David Garamond | last post by:
What is "text + text" supposed to do right now? It doesn't seem very useful to me. What about making "text + text" as an equivalent for "text || text"? Most strongly-typed programming languages do...
2
by: Andrew Poulos | last post by:
I've managed to get the text a user has selected on a page (in a DIV not a TEXTAREA) but I don't understand DOM methods well enough to change it. That it to replace the text with some other text. ...
1
by: Dinu | last post by:
hi i am having a gridview in aspx page and a usercontrol in master page of that page now what i want is selected row text to be displayed in usercontrol i wrote code as follows: ...
2
by: ahighfidelity | last post by:
Hi. I wonder if someone can help me. I have just recently finished our designing and building our company website... www.mediajunction.co.uk All appears fine when viewing it fully on Firefox...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.