How to handle Control-C (copy) AFTER form has done it

  • Thread starter Thread starter Amil
  • Start date Start date
A

Amil

I have a dialog box that has an icon for "paste". I want to enable it if
there is
text on the clipboard. How do I check for other parts of my dialog (e.g.
textboxes)
that may allow a ctrl-c. If my form intercepts KeyPress or
ProcessDialogKey, it
seems that the data has not yet been put on the clipboard (i.e.
children/textbox has
not handled it yet).

Amil
 
I have a dialog box that has an icon for "paste". I want to enable it if
there is
text on the clipboard. How do I check for other parts of my dialog (e.g.
textboxes)
that may allow a ctrl-c. If my form intercepts KeyPress or
ProcessDialogKey, it
seems that the data has not yet been put on the clipboard (i.e.
children/textbox has
not handled it yet).

Amil

call base.ProcessDialogKey() in your overriden method BEFORE you do
anything else. Perhaps that will fix it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top