M
Mustafa Rabie
hi all
i have added this code to my application to handel the key evens when a
control on my form has a focus, but whenever i click on the control, my code
is not excuted and the normal code for the control is, i set a break point
at the function entry and the code didn't break at it. i am using the
following code:
private void checkBox1_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
System.Windows.Forms.MessageBox.Show("Action KeyDown on
CheckBox","Hellooo");
}
else
{
System.Windows.Forms.MessageBox.Show("Anyother keyDown CheckBox","Hellooo");
}
e.Handled = true;
}
if anyone can help i'd really appreciate it
Mustafa
i have added this code to my application to handel the key evens when a
control on my form has a focus, but whenever i click on the control, my code
is not excuted and the normal code for the control is, i set a break point
at the function entry and the code didn't break at it. i am using the
following code:
private void checkBox1_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
System.Windows.Forms.MessageBox.Show("Action KeyDown on
CheckBox","Hellooo");
}
else
{
System.Windows.Forms.MessageBox.Show("Anyother keyDown CheckBox","Hellooo");
}
e.Handled = true;
}
if anyone can help i'd really appreciate it
Mustafa