Possible Duplicate:
Panel not getting focus
im test the Panel control in winform, and I got into a problem.
i have this 2 events that i added to the panel but non of them fire:
private void panel_onFocus(object sender, EventArgs e)
{
panel1.Size = new Size(panel1.Size.Width, panel1.Size.Height * panel1.Size.Height);
}
private void panel_lostFocus(object sender, EventArgs e)
{
panel1.Size = new Size(panel1.Size.Width, panel1.Size.Height / panel1.Size.Height);
}
i got a another control on the Form to test the focus(a button).
why onFocus and lostFocus dosnt fire?
(sory for my english)