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
 

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

Clear MainMenu items 1
SendKeys.Send("^A") 3
MainMenu in 2005? 4
Finish textbox and grid editing on Menu click ? 2
Menu is disapearing in 2005 1
MainMenu in MDI problem. 1
Inherits MainMenu 1
main menu style 2

Back
Top