Clipboard access using ctrl-C and ctrl-V?

J

JustMe

Is there any way to use the ctrl-c (COPY) and ctrl-v (PASTE) keyboard
combinations to perform clipboard operations?

--Terry
 
P

Paul G. Tobey [eMVP]

I'm not sure what you mean exactly. Can the user do that? Yes. Can you do
it from code, well, sort of, but it might be easier to just call the
clipboard APIs.

Paul T.
 
J

JustMe

Hi Paul ...

What I'm confused with is that ctrl-c and ctrl-v works in all applications
on the device. However, it does not work from within my CF application. If
I have two textboxes on a form, I cannot select the text in one, ctrl-c, and
then paste it into textbox2. It just doesn't work.

So my question is, is this a 'bug'? Or an undocumented 'feature'? <grin>

--Terry
 
P

Paul G. Tobey [eMVP]

No, not necessarily. The default behavior for an EDIT control is to handle
those keys itself, but it's up to the application to allow the behavior. If
..NET CF programs seem to be ignoring those characters, my guess is that the
behavior is by design (the same way the Tab key can't be used to sequence
from control to control in a 'dialog' form). You may be able to detect that
key combination being down and send suitable messages to the EDIT control
telling it to copy or paste, though. The messages would be WM_COPY and
WM_PASTE.

Paul T.
 

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

Top