Solved

ApplicationCommands.Copy command is always disabled

Posted on 2011-02-16
4
545 Views
Last Modified: 2013-12-17
Experts,

Any idea why would that happen ? i am creating a context menu and adding a header "Copy" and setting the command equal to ApplicationCommand.Copy and setting the target as well. Still it is always disabled. Wonder why..
0
Comment
Question by:dotnetpro
[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
  • 3
4 Comments
 
LVL 1

Author Comment

by:dotnetpro
ID: 34905623
I am going crazy..I have set the target as well. I actually have a Grid and have flowdocuments with paragraphs inside in each cell of the grid. Now the target is captured by

 item1.CommandTarget = gridControl.InputHitTest(e.GetPosition(gridControl));

I have other three headers in the context menu..One has a custom command and the other is copy and yet another one is Copy All. Everything else works but this one does not even if i select the text.
0
 
LVL 1

Accepted Solution

by:
dotnetpro earned 0 total points
ID: 34911690
Finally what i discover is that if i select the text by left click and drag of mouse and without leaving the left button i right click i see the copy option enabled and i can copy as well. But if i select the text and leave the button then the copy option is disabled....very weird..Any expert reviews please please please ????
0
 
LVL 1

Author Closing Comment

by:dotnetpro
ID: 35221280
Because no other solution was posted as it is quite clear from the post..If a suitable answer had been posted I would have accepted.
0

Featured Post

Automating Terraform w Jenkins & AWS CodeCommit

How to configure Jenkins and CodeCommit to allow users to easily create and destroy infrastructure using Terraform code.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

635 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