当前位置: 首页>>代码示例>>C#>>正文


C# Form.BringToFront方法代码示例

本文整理汇总了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();
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:13,代码来源:uc_Tooltip_StatusRoom_1.cs

示例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();
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:55,代码来源:uc_Tooltip_StatusRoom_0.cs

示例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();
        }
开发者ID:BruceleeThanh,项目名称:Pro_Government_0207,代码行数:41,代码来源:uc_Tooltip_StatusRoom_3.cs


注:本文中的Form.BringToFront方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。