Solved

How do I UN-highlight text that has been passed to a new textbox

Posted on 2006-06-20
3
276 Views
Last Modified: 2006-11-18
I wrote an application that passes text from one form to another.  The second form houses a locked text box that displays some information that has been compiled and parsed on over to the second form.  Everything works great except for the fact that when the second form displays, it displays the text box with highlighted information.  How do I UN-highlight that information being displayed in the text box?  How would I code it so that it doesn't have a blue selection graphic all over as if  you dragged the mouse all over the text box?
0
Comment
Question by:VBBRett
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
vadim63 earned 500 total points
ID: 16944358
TextBox1.SelectionStart = 0
TextBox1.SelectionLength = 0
0
 

Author Comment

by:VBBRett
ID: 16945444
Thank you very much vadim63
0
 
LVL 10

Expert Comment

by:vadim63
ID: 16945460
Good luck. Thanks for the points.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question