المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Combo box events



C# Programming
11-25-2009, 07:20 AM
Hi i have come across a problem using combo box events


private void comboBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (Control.ModifierKeys == Keys.Delete)
{
imageViewer1.DeleteSelectedShape();
}
}

private void comboBox1_MouseDoubleClick(object sender, MouseEventArgs e)
{
comboBox1.Text = "hello";
}


For some reason the above code is not fired, it is probably a simple constraint i do not know about but can anyone see why this is would not fire.

Thanx in advance