473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

mainMenu and SendKeys.Send("^c")

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

Nov 21 '05 #1
10 9402
Hi,

Clipboard.SetDataObject("This is a test", True)

Ken

----------------------

"ucasesoftware" <uc***********@hotmail.fr> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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

Nov 21 '05 #2
Hi,

Clipboard.SetDataObject("This is a test", True)

Ken

----------------------

"ucasesoftware" <uc***********@hotmail.fr> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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

Nov 21 '05 #3
???? i know this but i want to send CTRL C in main menu

Nov 21 '05 #4
???? i know this but i want to send CTRL C in main menu

Nov 21 '05 #5
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

-----------------------------

"ucasesoftware" <uc***********@hotmail.fr> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
???? i know this but i want to send CTRL C in main menu

Nov 21 '05 #6
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

-----------------------------

"ucasesoftware" <uc***********@hotmail.fr> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
???? i know this but i want to send CTRL C in main menu

Nov 21 '05 #7
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 ?

Nov 21 '05 #8
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 ?

Nov 21 '05 #9
Hi,

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

Ken
-------------------
"ucasesoftware" <uc***********@hotmail.fr> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
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 ?

Nov 21 '05 #10
Hi,

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

Ken
-------------------
"ucasesoftware" <uc***********@hotmail.fr> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
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 ?

Nov 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kurda Yon | last post by:
Sorry for a very stupid question. Can you tell me what does the following html source does if I press button "Send"? If I read this code by Netscaspe from my local file system and then press...
2
by: Gary | last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)"); This is not working ..what could be the...
6
by: Jason Huang | last post by:
Hi, In VB, we have windows control item "MainMenu", do we have this item in the ASP.Net C# web form? Or how could we make it? By the way, how about the ASP.Net 2005? Thanks for help. Jason
6
by: Gary | last post by:
Hi, I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)") This is not working ..what could be the...
4
by: Rvo | last post by:
Hi all, I need to use the Netware "send" function to send messages to some/all attached netware users on a server. However, I can't find any documentation on this topic on the Novell site or...
0
by: ucasesoftware | last post by:
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...
6
by: ucasesoftware | last post by:
All SendKeys.Send like ^C, ^V, ^X work in my form with textboxes but SendKeys.Send("^A") doesn't work ! ?? i have a bip error windows ! ?
5
by: Sweet.mhtrq | last post by:
I want to use "send" to send a string like Code: send "p" & OutputString if OutputString is "1234" , "p1234" will be sent. but it is sent too fast, my robot' cpu cant receive the whole...
1
by: groupie | last post by:
Hi, I'd like to know how to implement the "Forgot Password" feature on many websites which require a login, exactly like this ebay example:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.