Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

Selecting and cursors in Label and TextBox controls

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Teis Draiby - 21 Dec 2004 08:17 GMT
Two simple questions:

Can I make text in a Label control selectable (in an easy way)?
or
Can I make the blinking cursor in a TextBox control disappear, while
maintaining selectability?

Merry Cristmas,
Teis
Herfried K. Wagner [MVP] - 21 Dec 2004 12:38 GMT
"Teis Draiby" <teisREMOVE-THIS@draiby.com> schrieb:
> Can I make text in a Label control selectable (in an easy way)?

You cannot select the label's text.

> Can I make the blinking cursor in a TextBox control disappear, while
> maintaining selectability?

Typically, read-only textboxes are archieved by setting their 'ReadOnly'
property to 'True'.  This won't hide the blinking caret when the control has
focus.  Notice that the caret is visible to assist the user when selecting
text using the keyboard.

What's the reason for hiding the caret?

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/

Teis Draiby - 21 Dec 2004 13:15 GMT
Thank you very much for answering my question(s)!

> What's the reason for hiding the caret?

The caret indicates to the user that the text is editable, which it is not
in my case. It is only selectable.
(Similar to web pages (no caret) where the content is read-only but still
selectable)

regards, Teis

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.