473,414 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Make the label's text selectable

Hi all,

How can I configure a label control so I can select its text with a mouse
(for copy/paste)?

Regards,

Adrian
Nov 17 '05 #1
5 9541
How about using a textbox and setting it to readonly when a border style of
"none"?

"Adrian Grigorof" <ad*************@altairtech.ca> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hi all,

How can I configure a label control so I can select its text with a mouse
(for copy/paste)?

Regards,

Adrian

Nov 17 '05 #2
Yes, I thought about that but unless that's the only way I want to avoid
re-writing/adjusting all the code associated with that label (bad idea to
use one in the first place).

Regards,

Adrian

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:OT*************@TK2MSFTNGP10.phx.gbl...
How about using a textbox and setting it to readonly when a border style of "none"?

"Adrian Grigorof" <ad*************@altairtech.ca> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
Hi all,

How can I configure a label control so I can select its text with a mouse (for copy/paste)?

Regards,

Adrian


Nov 17 '05 #3
Hi Adrian,

I agree with Peter that we'd better use a readonly non-border TextBox to
simulate what you want. Actually, Label control is not designed for edit
usage, and it does not have the function for selection.

I think you may use the TextBox, and use Find/Replace funtion to replace
any Label reference with your new TextBox reference in the code file.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #4
Thank you Peter and Jeffrey, it seems that I have to replace the label with
a TextBox.
--
Regards,

Adrian

""Jeffrey Tan[MSFT]"" <v-*****@online.microsoft.com> wrote in message
news:nC*************@TK2MSFTNGXA02.phx.gbl...
Hi Adrian,

I agree with Peter that we'd better use a readonly non-border TextBox to
simulate what you want. Actually, Label control is not designed for edit
usage, and it does not have the function for selection.

I think you may use the TextBox, and use Find/Replace funtion to replace
any Label reference with your new TextBox reference in the code file.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #5
Ok, if you need further help, please feel free to post. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: The Eternal Squire | last post by:
PEP: 336 Title: Make None Callable Version: $Revision: 1.1 $ Last-Modified: $Date: 2004/11/03 16:58:30 $ Author: Andrew McClelland Status: Draft Type: Standards Track Content-Type: text/plain...
2
by: tshad | last post by:
I have a screen that is displaying an asp:textbox that has about 20 lines of text with line feeds that I read out of my Database. This displays fine as a multiline textbox. It doesn't as a...
1
by: Homer | last post by:
Hi, I used a template for my first Web application. I made a few changes to the layer thru its css file. The problem that has been vexing me is the vertical spacing for each navigation menu...
1
by: neehakale | last post by:
I am trying to make the text in the text box non selectable I have 1 method on event :Mouse Move write txtabc.selectLength = 0; If any one of u know more easier way to do this then pls...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.