pannel加载窗体
时间:2015-12-04 09:07:57
收藏:0
阅读:365
public static void loadFillForm(Panel panel, System.Windows.Forms.Form frm) { if (frm != null && panel != null) { frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; frm.ShowIcon = false; frm.ShowInTaskbar = false; frm.TopLevel = false; frm.Dock = DockStyle.Fill; panel.Controls.Add(frm); frm.Show(); frm.BringToFront(); frm.Focus(); } }
原文:http://www.cnblogs.com/wangchuang/p/5018297.html
评论(0)