Solved

Enable copy and pasting even when textbox is disabled

Posted on 2016-11-18
2
15 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
2 Comments
 
LVL 69

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now