Solved

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

Posted on 2006-06-20
3
274 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now