Solved

ApplicationCommands.Copy command is always disabled

Posted on 2011-02-16
4
527 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
  • 3
4 Comments
 
LVL 5

Expert Comment

by:Siyamala
ID: 34905565
0
 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

679 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