mainMenu and SendKeys.Send("^c")

  • Thread starter Thread starter ucasesoftware
  • Start date Start date
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
 
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
 
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 ?
 
Hi,

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

Ken
 
Back
Top