473,326 Members | 2,337 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,326 software developers and data experts.

how to capture enter key without affrecting copy paste kcust keys

GS
If I were to capture enter key on keyup event of an GUI object like comboBox
box, How do I avoid killing ctrol-c, controlv, controlx, shift-insert,
shiftdelete, contrl-insert
Nov 9 '06 #1
3 2259

GS schrieb:
If I were to capture enter key on keyup event of an GUI object like comboBox
box, How do I avoid killing ctrol-c, controlv, controlx, shift-insert,
shiftdelete, contrl-insert
Hi,

Unfortunately, I don't know what's the problem: When I capture the
[Enter]-key of a textbox, the ctrl and shift still works... I haven't
tested it with a ComboBox but I think it should work there, too.
Could you specify your problem a little more, please?

Thanks,
Norman

Nov 9 '06 #2
GS
it is just that in my combobox, control-c , control-v, control-x are
ignored, the Shift-delete... etc are ignored

My code for capturing the return key in a combobox is

Private Sub addressBar_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles addressBar.KeyUp
If (e.KeyCode = Keys.Return) Then
.... my code for processing return key
end if
end sub

I just did no deal with other keys and I guess that could be my problem

I could still do copy, cut, paste via mouse but not with keyboard
"Norman Chong" <no*********@freenet.dewrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
>
GS schrieb:
If I were to capture enter key on keyup event of an GUI object like
comboBox
box, How do I avoid killing ctrol-c, controlv, controlx, shift-insert,
shiftdelete, contrl-insert

Hi,

Unfortunately, I don't know what's the problem: When I capture the
[Enter]-key of a textbox, the ctrl and shift still works... I haven't
tested it with a ComboBox but I think it should work there, too.
Could you specify your problem a little more, please?

Thanks,
Norman

Nov 10 '06 #3
GS schrieb:
it is just that in my combobox, control-c , control-v, control-x are
ignored, the Shift-delete... etc are ignored
Strange problem... When I use the KeyUp-Event of a ComboBox and react
to [Return], other keys aren't affected - Everything works fine?!?

I'm sure that you don't have to react to other keys within the event -
When you just do something when pressing [Return], the functionality
ofother keys won't be deleted, so this is not the problem.

Do you catch [Ctrl]-X or [Shift]-X somewhere else in your code?
Can you write text into the ComboBox or are the other keys ignored,
too?
Is it possible that the code within your KeyUp-Event has something to
do with this problem?
Does this problem appear with other controls (Or in another
application)?
Does the problem appear when using simple test-code within the
KeyUp-Event (e.g. just showing a MessageBox)?
Does the problem appear when working on a different system?

Stupid questions, I know. But I don't have any idea why this happens -
So it might be a good idea to get a little closer to the source of the
problem \ to the root of all evil ;-)

Nov 13 '06 #4

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

Similar topics

4
by: The Flyer | last post by:
Hi Sorry for posting this message to so many groups, but I was not sure which group the windows keyboard experts would be reading, so I ventured to post it to all of them. I want to map or...
5
by: NK | last post by:
Hi, We have a webpage that has a form available on the intranet. A user will have a window open that runs a different application open. When the user accesses the webpage and clicks a button we...
1
by: OhFiddleSticks | last post by:
Does anyone know if there is a way to add a text value to a combo box (the text box part, not the rowsource) in VBA without triggering an update event? I've tried everything I can think of without...
5
by: ewillyb | last post by:
Hi, ASP.NET has some interesting behavior when the user hits the Enter key. If there are multiple ASP:Buttons (rendered as HTML submits) on the form, when the user hits enter, the first button's...
7
by: Bob Achgill | last post by:
When I use the code for KeyPress to capture pressing a certain key for processing on a form with no Text Box it works. But when I try the same code on my application that has text boxes it does...
3
by: Melson | last post by:
hi can anyone help me how can i capture ENTER keystroke when the cell in datagrid is in editing mode. I'm now creating a data entry form with primary key in header and details in datagrid. So...
6
by: Ben R. | last post by:
Hi, I've got a vb.net winforms app. Out of the box, I can use Ctrl X, C and V as expected in controls like textboxes. I've got a menustrip, and if I click the link "Add standard items" which...
0
by: Tomaz Koritnik | last post by:
I have an UserControl with a Textbox on it. TextBox captures keys (I assume via overridden ProcessCmdKey method) and doesn't pass them onto parent (by not calling base.ProcessCmdKey) therefore...
1
by: Tomaz Koritnik | last post by:
I have an UserControl with a Textbox on it. TextBox captures keys (I assume via overridden ProcessCmdKey method) and doesn't pass them onto parent (by not calling base.ProcessCmdKey) therefore...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.