mainMenu and SendKeys.Send("^c")

U

ucasesoftware

In my mainMenu i have items Copy, cut, paste...

I have a form with a lot of textbox

In my sub of item copy i have : SendKeys.Send("^c")

but if the user select a text in a textbox... click Copy in the
mainMenu...
it doesn't work
 
K

Ken Tucker [MVP]

Hi,

I added a Copy menu item to the main menu and assigned a short
cut key of control c to it. It worked as expected.

mnuCopy.Shortcut = Shortcut.CtrlC



Ken
 
U

ucasesoftware

ken
Private Sub mnItemCopier_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles mnItemCopier.Click
mnItemCopier.Shortcut = Shortcut.CtrlC
End Sub

this is not enough to copy ! ?? you need a SendKeys.Send("^c") ??? no ?
 
K

Ken Tucker [MVP]

Hi,

You would need code in the menu items click event to copy the info
to the clipboard.

Ken
 

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

Similar Threads


Top