Solved

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

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vb.net 2 43
Vb. Net application freezes 9 45
Assigning handler to UserControls in flowlayoutpanel 4 22
VB.NET 2008 Publish Error 2 25
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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…

776 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