Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2006-06-20
3
Medium Priority
?
281 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
vadim63 earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

609 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