KeyUp event for an MDI child form.

R

rhaazy

using C# VS2003

private void textBox2_KeyUp(object sender,
System.Windows.Forms.KeyEventArgs e)
{
if(e.KeyCode== Keys.Enter)
{
MessageBox.Show("yay");
}
}

This code works fine on my MDI main form, however nothing happens when
I do the same thing in a child form. Anyone know whats up?
 

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