// 패널 자동 종속 문제 때문에 BringToFront 함수로 해결. public void BtnClear() { Burger_title.Load(@"images/LeftMenuImg/image1.png"); Drink_title.Load(@"images/LeftMenuImg/drink_deactive.png"); Side_title.Load(@"images/LeftMenuImg/side_nonactive.png"); Set_title.Load(@"images/LeftMenuImg/set_nonactive.png"); }
private void Burger_title_Click(object sender, EventArgs e) { BtnClear(); PanelClear(); menu_panel.BringToFront(); Burger_title.Load(@"images/LeftMenuImg/image2.png"); Burger_title.SizeMode = PictureBoxSizeMode.StretchImage; menu_panel.Visible = true; }