Solved

ApplicationCommands.Copy command is always disabled

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

752 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