473,395 Members | 1,368 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,395 software developers and data experts.

What can be the reason that KeyDown Event works but KeyUp doesn't?

Hi,

I'm trying to look for an aswer to that question for long long time and i
can't find it.

I've a DataGrid which i want to bound one of it's cell to a KeyUp event, and
it doesn't work. All other events work, and KeyUp on a regular TextBox works
just fine. It worked for me in the past, and just stopped suddenly (i guess
after Windows Update). Maybe it's related to .NET Version, i don't know, but
i really have to find a solution.

Thanks,
Gidi.
Apr 22 '06 #1
3 1933
Yup.
I've noticed this with IE, and decided not to rack my brains but simply "go
with the flow" and use onkeyup.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Gidi" wrote:
Hi,

I'm trying to look for an aswer to that question for long long time and i
can't find it.

I've a DataGrid which i want to bound one of it's cell to a KeyUp event, and
it doesn't work. All other events work, and KeyUp on a regular TextBox works
just fine. It worked for me in the past, and just stopped suddenly (i guess
after Windows Update). Maybe it's related to .NET Version, i don't know, but
i really have to find a solution.

Thanks,
Gidi.

Apr 23 '06 #2
Sorry,
I should have said, "go with onkeydown" rather than "onkeyup".
You might want to check this out with other browsers (e.g. FireFox) as well.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Gidi" wrote:
Hi,

I'm trying to look for an aswer to that question for long long time and i
can't find it.

I've a DataGrid which i want to bound one of it's cell to a KeyUp event, and
it doesn't work. All other events work, and KeyUp on a regular TextBox works
just fine. It worked for me in the past, and just stopped suddenly (i guess
after Windows Update). Maybe it's related to .NET Version, i don't know, but
i really have to find a solution.

Thanks,
Gidi.

Apr 23 '06 #3
Hi Peter,

I don't know if it's realted to IE becuase i'm not programming a web based
program, i'm writing a windows application.

The thing is that i need both the KeyDown and KeyUp events....

"Peter Bromberg [C# MVP]" wrote:
Sorry,
I should have said, "go with onkeydown" rather than "onkeyup".
You might want to check this out with other browsers (e.g. FireFox) as well.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Gidi" wrote:
Hi,

I'm trying to look for an aswer to that question for long long time and i
can't find it.

I've a DataGrid which i want to bound one of it's cell to a KeyUp event, and
it doesn't work. All other events work, and KeyUp on a regular TextBox works
just fine. It worked for me in the past, and just stopped suddenly (i guess
after Windows Update). Maybe it's related to .NET Version, i don't know, but
i really have to find a solution.

Thanks,
Gidi.

Apr 23 '06 #4

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

Similar topics

0
by: Ramnadh | last post by:
Hi, I am inherting the Panel call and making another class BasePanel By extending all the properties and including some other members as the base for all the classes. After that i am inheriting...
3
by: trint | last post by:
Ok, I have tried to do this with the System.Web.UI and can't find anything for the webform. It seems much easier for a Winform. Any help in trapping Webform keydown event and keyup event is...
2
by: ZS | last post by:
Hi, On a form , I'm trying to trap when a shift key is pressed. Can someone explain how the KeyUp,KeyDown and Key Press event works for Forms. Thanks -ZS
2
by: anoehre_1 | last post by:
Hi! Very simple Application: ------------------------------- this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
4
by: ShaneO | last post by:
I would like to handle the KeyUp & KeyDown events in the same event handler but can't find how to determine which event was fired - Private Sub ListBox1_KeyUp(ByVal sender As Object, ByVal e As...
3
by: Pugi! | last post by:
I got this (piece of) script from 'DHTML Utopia - Modern Webdesign - Using Javascript & DOM'. function aKeyWasPressed(e) { if (window.event) { var key = window.event.keyCode; } else { var key...
3
by: MLM450 | last post by:
I have a control that handles the KeyDown event but it does not seem to execute when a combination of keys is pressed - like CTRL+Z. If I press CTRL, it executes. If I press Z, it executes. But the...
6
by: mingchin.AT | last post by:
Hi, In Javascript, the simple way to check user input is to get the keycode. But for cross browser, its seems we need to have two different keycodes for the same key. There is a web page for...
3
by: Jason Huang | last post by:
Hi, In my .Net 1.1 C# windows form, I have a DataGrid DG1. The DG1 have a column dc1 which format is TextBox. And I want to check the whave value I have typed in. My question is the new value...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.