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
Solved

ApplicationCommands.Copy command is always disabled

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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