本文整理汇总了C#中Form.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# Form.BringToFront方法的具体用法?C# Form.BringToFront怎么用?C# Form.BringToFront使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Form
的用法示例。
在下文中一共展示了Form.BringToFront方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowDialog
public void ShowDialog()
{
Form afrm = new Form();
afrm.Controls.Add(this);
afrm.FormBorderStyle = FormBorderStyle.FixedToolWindow;
afrm.BringToFront();
afrm.Width = this.Width + 18;
afrm.Height = this.Height + 20;
afrm.ShowDialog();
}
示例2: ShowDialog
public void ShowDialog()
{
if (this.StatusButtonPopup == 0) // Mac dinh
{
this.btnBooking_Customer_0.Enabled = false;
this.btnBooking_Gov_0.Enabled = false;
this.btnBooking_Group_0.Enabled = false;
this.btnCheckIn_Customer_0.Enabled = false;
this.btnCheckIn_Gov_0.Enabled = false;
this.btnCheckIn_Group_0.Enabled = false;
}
else if (this.StatusButtonPopup == 1) //Qua khu
{
this.btnBooking_Customer_0.Enabled = false;
this.btnBooking_Gov_0.Enabled = false;
this.btnBooking_Group_0.Enabled = false;
this.btnCheckIn_Customer_0.Enabled = false;
this.btnCheckIn_Gov_0.Enabled = false;
this.btnCheckIn_Group_0.Enabled = false;
}
else if (this.StatusButtonPopup == 2) // hien tai
{
this.btnBooking_Customer_0.Enabled = true;
this.btnBooking_Gov_0.Enabled = true;
this.btnBooking_Group_0.Enabled = true;
this.btnCheckIn_Customer_0.Enabled = true;
this.btnCheckIn_Gov_0.Enabled = true;
this.btnCheckIn_Group_0.Enabled = true;
}
else if (this.StatusButtonPopup == 3) // tuong lai
{
this.btnBooking_Customer_0.Enabled = true;
this.btnBooking_Gov_0.Enabled = true;
this.btnBooking_Group_0.Enabled = true;
this.btnCheckIn_Customer_0.Enabled = false;
this.btnCheckIn_Gov_0.Enabled = false;
this.btnCheckIn_Group_0.Enabled = false;
}
Form afrm = new Form();
afrm.Controls.Add(this);
afrm.FormBorderStyle = FormBorderStyle.FixedToolWindow;
afrm.BringToFront();
afrm.Width = this.Width + 18;
afrm.Height = this.Height + 20;
afrm.ShowDialog();
}
示例3: ShowDialog
public void ShowDialog()
{
if (this.StatusButtonPopup == 0) // Mac dinh
{
this.btnCheckOut_3.Enabled = false;
this.btnLockRoom.Enabled = false;
this.btnPaymen_3.Enabled = false;
this.btnUseService_3.Enabled = false;
}
else if (this.StatusButtonPopup == 1) //Qua khu
{
this.btnCheckOut_3.Enabled = false;
this.btnLockRoom.Enabled = false;
this.btnPaymen_3.Enabled = false;
this.btnUseService_3.Enabled = false;
}
else if (this.StatusButtonPopup == 2) // hien tai
{
this.btnCheckOut_3.Enabled = true;
this.btnLockRoom.Enabled = true;
this.btnPaymen_3.Enabled = true;
this.btnUseService_3.Enabled = true;
}
else if (this.StatusButtonPopup == 3) // tuong lai
{
this.btnCheckOut_3.Enabled = false;
this.btnLockRoom.Enabled = false;
this.btnPaymen_3.Enabled = false;
this.btnUseService_3.Enabled = false;
}
Form afrm = new Form();
afrm.Controls.Add(this);
afrm.FormBorderStyle = FormBorderStyle.FixedToolWindow;
afrm.BringToFront();
afrm.Width = this.Width + 18;
afrm.Height = this.Height + 20;
afrm.ShowDialog();
}