Native Exception on key press

G

Guest

Hi,
I developed an Pocket PC Application. In this When i am using Short cut keys
for Buttons (like F1, F2), I is throwing me Native Exception.

I am using .net CF 1.0 with Service Pack-3.

Does does any one have any idea why i am getting this Exception.

I am using the KeyUP Event of Text box and Form to capture the Key Press.

Following are the Error Details.

Exceptioncode : 0xc0000005
ExceptionAddress : 0x033144b8
Reading : 0x0e000009

Thanks in Advance,
Rayudu

When i am using Stylus it is working fine.
 
G

Guest

Hi,
In the KeyUp event of all the textboxs and form, I am calling the following
function.

private void FunctionalKeys(object sender, System.Windows.Forms.KeyEventArgs
e)
{
try
{
switch(e.KeyCode)
{
case Keys.F2:
btnConfirm_Click(sender, e);
return;
case Keys.F1:
btnCancel_Click(sender, e);
return;
}
}
catch{}
}

More over I am using the same event for all the textbox keyup events. This
is working fine in some screens and we are not able to reproduce this error
first time consistently. But once we get this error for the first time, then
we are able to reproduce it.

Thanks in Advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top