Solved

ApplicationCommands.Copy command is always disabled

Posted on 2011-02-16
4
500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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 tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

19 Experts available now in Live!

Get 1:1 Help Now