Solved

Enable copy and pasting even when textbox is disabled

Posted on 2016-11-18
2
55 Views
Last Modified: 2016-11-18
Hello,

How can I Enable copy and pasting even when textbox is disabled.
Cheers
0
Comment
Question by:RIAS
[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 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 41893073
by making a textbox "ReadOnly=True" instead of "Enabled=False", you will be able to highlight from the textbox and copy the selection to the clipboard.

but a disabled textbox or a readonly textbox cannot be the target of a paste.

maybe you can add a button next to your textbox that will read the content of the clipboard and assign the .Text property of your textbox.

what is your scenario? it doesn't seem right to allow a user to paste a value in a textbox but preventing from typing!
0
 

Author Closing Comment

by:RIAS
ID: 41893077
Worked!!
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

632 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