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


C# XtraForm.ResumeLayout方法代码示例

本文整理汇总了C#中XtraForm.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# XtraForm.ResumeLayout方法的具体用法?C# XtraForm.ResumeLayout怎么用?C# XtraForm.ResumeLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XtraForm的用法示例。


在下文中一共展示了XtraForm.ResumeLayout方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeComponent

 private static void InitializeComponent()
 {
     // Create a new instance of the form.
     frmInputDialog = new XtraForm();
     lblPrompt = new Label();
     btnOK = new SimpleButton();
     btnCancel = new SimpleButton();
     txtInput = new TextEdit();
     frmInputDialog.SuspendLayout();
     //
     // lblPrompt
     //
     lblPrompt.Anchor = ((AnchorStyles)((((AnchorStyles.Top | AnchorStyles.Bottom) | AnchorStyles.Left) | AnchorStyles.Right)));
     lblPrompt.Location = new Point(12, 9);
     lblPrompt.Name = "lblPrompt";
     lblPrompt.Size = new Size(302, 82);
     lblPrompt.TabIndex = 3;
     //
     // btnOK
     //
     btnOK.DialogResult = DialogResult.OK;
     btnOK.Location = new Point(326, 8);
     btnOK.Name = "btnOK";
     btnOK.Size = new Size(64, 24);
     btnOK.TabIndex = 1;
     btnOK.Text = "Đồng ý";
     btnOK.Click += new EventHandler(btnOK_Click);
     //
     // btnCancel
     //
     btnCancel.DialogResult = DialogResult.Cancel;
     btnCancel.Location = new Point(326, 40);
     btnCancel.Name = "btnCancel";
     btnCancel.Size = new Size(64, 24);
     btnCancel.TabIndex = 2;
     btnCancel.Text = "Đóng";
     btnCancel.Click += new EventHandler(btnCancel_Click);
     //
     // txtInput
     //
     txtInput.Location = new Point(8, 100);
     txtInput.Name = "txtInput";
     txtInput.Size = new Size(379, 20);
     txtInput.TabIndex = 0;
     txtInput.Text = "";
     //
     // InputBoxDialog
     //
     frmInputDialog.AutoScaleBaseSize = new Size(5, 13);
     frmInputDialog.ClientSize = new Size(398, 128);
     frmInputDialog.Controls.Add(txtInput);
     frmInputDialog.Controls.Add(btnCancel);
     frmInputDialog.Controls.Add(btnOK);
     frmInputDialog.Controls.Add(lblPrompt);
     frmInputDialog.FormBorderStyle = FormBorderStyle.FixedDialog;
     frmInputDialog.MaximizeBox = false;
     frmInputDialog.MinimizeBox = false;
     frmInputDialog.Name = "InputBoxDialog";
     frmInputDialog.ResumeLayout(false);
 }
开发者ID:khanhdtn,项目名称:my-fw-win,代码行数:60,代码来源:PLInputBox.cs

示例2: AddCheckbox

        // Hàm add checkbox vào form
        private void AddCheckbox(XtraForm mainform, XtraForm form)
        {
            int w = form.Width;
            int h = form.Height;
            form.Size = new System.Drawing.Size(w, h + 30);
            form.SuspendLayout();

            // Khởi tạo checkbox for add
            DevExpress.XtraEditors.CheckEdit checkEdit1 = new DevExpress.XtraEditors.CheckEdit();
            checkEdit1.Location = new System.Drawing.Point(13, h - 30);//subheader
            checkEdit1.Name = "_" + form.GetType().FullName;
            checkEdit1.Properties.Caption = "Hiện màn hình này ở các lần sau.";
            checkEdit1.Size = new System.Drawing.Size(w, 19);
            checkEdit1.TabIndex = 4;
            checkEdit1.Checked = true;
            checkEdit1.Click += new System.EventHandler(Checkbox_Click);
            form.Controls.Add(checkEdit1);

            form.ResumeLayout(false);
            form.PerformLayout();
        }
开发者ID:khanhdtn,项目名称:my-fw-win,代码行数:22,代码来源:frmUserFormHelp.cs


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