本文整理汇总了C#中Form1.Select方法的典型用法代码示例。如果您正苦于以下问题:C# Form1.Select方法的具体用法?C# Form1.Select怎么用?C# Form1.Select使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Form1
的用法示例。
在下文中一共展示了Form1.Select方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MDITabbed
public MDITabbed()
{
InitializeComponent();
DockPanel dockPanel = new DockPanel();
dockPanel.Dock = DockStyle.Fill;
dockPanel.BackColor = Color.Beige;
Controls.Add(dockPanel);
//dockPanel.AllowEndUserNestedDocking = false;
dockPanel.AllowEndUserDocking = false;
dockPanel.BringToFront();
Form1 form = new Form1();
//form.AllowEndUserDocking = false;
//form.WindowState = FormWindowState.Maximized;
form.MinimizeBox = false;
form.Show(dockPanel);
form3 = new Form1();
form3.Text = "Form 3";
//form.AllowEndUserDocking = false;
//form.WindowState = FormWindowState.Maximized;
form3.MinimizeBox = false;
form3.Show(dockPanel);
form3.Select();
frmMed = new frmMedicine();
frmMed.Text = "Medicine";
//form.AllowEndUserDocking = false;
//form.WindowState = FormWindowState.Maximized;
frmMed.MinimizeBox = false;
frmMed.Show(dockPanel);
frmMed.Select();
frmFig = new frmFigure();
frmFig.Text = "Figure";
//form.AllowEndUserDocking = false;
//form.WindowState = FormWindowState.Maximized;
frmFig.MinimizeBox = false;
frmFig.Show(dockPanel);
frmFig.Select();
Form1 form2 = new Form1(); ;
form2.ShowHint = DockState.DockLeft;
form2.AllowEndUserDocking = false;
form2.CloseButton = false;
form2.IsFloat = false;
form2.CloseButtonVisible = false;
form2.Show(dockPanel);
dockPanel.Select();
//form2.Select();
//MessageBox.Show(dockPanel.Panes.Count.ToString());
}