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.
 
Back
Top