Solved

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

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

18 Experts available now in Live!

Get 1:1 Help Now