Re: HardwareButton KeyDown event stops firing after 18 key presses
- From: "Fabien" <fab_00_2002@xxxxxxx>
- Date: 1 Feb 2007 12:26:51 -0800
Hi mm,
I'm quite glad not to be the only one to have had this problem.
The only workaround I found is described on the following link :
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=6f3656ec-b669-4a23-987a-a2455fbd2fc4
BR
Fabien Decret
Windows Embedded Consultant
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/
On 1 fév, 14:03, mmdexter <mmdex...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I am using the following test code to map
a hardware button on a Dell Axim X51v:
-------------
private HardwareButton hwb4;
public Form7()
{
this.KeyDown += new KeyEventHandler(this.OnKeyDown);
HWButtonConfig();
}
private void HWButtonConfig()
{
try
{
hwb4 = new HardwareButton();
hwb4.AssociatedControl = this;
hwb4.HardwareKey = HardwareKeys.ApplicationKey4;
}
catch (Exception e)
{
//
}
}
private void OnKeyDown(object sender, KeyEventArgs e)
{
switch ((HardwareKeys)e.KeyCode)
{
case HardwareKeys.ApplicationKey4:
try
{
label1.Text = "Fyll " + xx++;
}
catch(Exception)
{
label1.Text = "Fyll E ";
}
break;
default:
break;
}
}
-------------
and it works fine for 18 key presses
but then the event stops firing (no exception
generated).
To start it again I have to relaunch the
form and then I get another 18 key presses...
Is there a way around this behaviour? My real
application needs to do more than 18 key presses
in a row!
/mm
.
- References:
- Prev by Date: Re: Image processing at high frame rate for Windows Mobile
- Next by Date: Re: Get IRDA Harware status on Windows Mobile..
- Previous by thread: HardwareButton KeyDown event stops firing after 18 key presses
- Next by thread: Signing (rookie question)
- Index(es):