473,549 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9420
Hi,

Clipboard.SetDa taObject("This is a test", True)

Ken

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

"ucasesoftw are" <uc***********@ hotmail.fr> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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.SetDa taObject("This is a test", True)

Ken

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

"ucasesoftw are" <uc***********@ hotmail.fr> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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.Shortcu t = Shortcut.CtrlC

Ken

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

"ucasesoftw are" <uc***********@ hotmail.fr> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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.Shortcu t = Shortcut.CtrlC

Ken

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

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

Nov 21 '05 #7
ken
Private Sub mnItemCopier_Cl ick(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles mnItemCopier.Cl ick
mnItemCopier.Sh ortcut = 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_Cl ick(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles mnItemCopier.Cl ick
mnItemCopier.Sh ortcut = 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
-------------------
"ucasesoftw are" <uc***********@ hotmail.fr> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com...
ken
Private Sub mnItemCopier_Cl ick(ByVal sender As System.Object, ByVal
e As System.EventArg s) Handles mnItemCopier.Cl ick
mnItemCopier.Sh ortcut = Shortcut.CtrlC
End Sub

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

Nov 21 '05 #10

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

Similar topics

3
7195
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 "Send", I see in my browser directory where the considered html source is located. If I publish the given html source, open published page and again...
2
6245
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 reason..? Situation: I have a menu in my form, which is given a short key "Ctrl+P", now when the
6
1977
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
31011
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 reason..?
4
4269
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 anywhere else. If any of you has experience on this topic (or knows of any online documentation about it) I would realy appreciate your help. (Which...
0
346
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 Copy in the mainMenu... it doesn't work
6
5313
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
1156
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 string. Sometime it
1
6080
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: http://cgi4.ebay.com/ws/eBayISAPI.dll?UserIdRecognizerShow I've already retrieved the users password from the database - I just need to send it to the email address entered. From reading many posts,...
0
7546
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7740
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5387
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5111
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3517
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3496
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1082
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
784
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.