가능한 중복 패널 크기 조정의 WinForm :
Panel not getting focusonfocus 및
메신저 시험의 WinForm에서 패널 제어, 나는 문제에있어.
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);
}
내가 초점 (버튼)을 테스트하는 폼에 다른 컨트롤을 가지고 :
내가이 2 개 i가 패널에 추가 이벤트하지만 그들 중 비 화재 있습니다.
왜 onFocus 및 lostFocus가 실행됩니까?
(내 sory 영어)
음 ... 확실하지는 않지만 확실하게 초점을 맞출 수 있습니까? – musefan
thx 나는 패널에 집중할 수 없다는 것을 알지 못했습니다. – samy