Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141619 | Dec 21,2018 05:12 AM UTC | Dec 24,2018 10:15 AM UTC | WinForms | 1 |
![]() |
Tags: BorderLayout |
// Need to initialize size for child controls
this.gridBagLayout1.SetPreferredSize(this.button1, new System.Drawing.Size(0, 0));
this.gridBagLayout1.SetPreferredSize(this.button2, new System.Drawing.Size(0, 0));
this.gridBagLayout1.SetPreferredSize(this.button3, new System.Drawing.Size(0, 0));
//
// borderLayout1
//
this.gridBagLayout1.ContainerControl = this;
// Set Position of child controls in GridBagLayout
this.gridBagLayout1.SetConstraints(this.button1, new Syncfusion.Windows.Forms.Tools.GridBagConstraints(0, 0, 1, 0, 0.2D, 1D, Syncfusion.Windows.Forms.Tools.AnchorTypes.Center, Syncfusion.Windows.Forms.Tools.FillType.Both, new Syncfusion.Windows.Forms.Tools.Insets(5, 5, 5, 5), 0, 0, false));
this.gridBagLayout1.SetConstraints(this.button2, new Syncfusion.Windows.Forms.Tools.GridBagConstraints(1, 0, 1, 0, 0.2D, 1D, Syncfusion.Windows.Forms.Tools.AnchorTypes.Center, Syncfusion.Windows.Forms.Tools.FillType.Both, new Syncfusion.Windows.Forms.Tools.Insets(5, 5, 5, 5), 0, 0, false));
this.gridBagLayout1.SetConstraints(this.button3, new Syncfusion.Windows.Forms.Tools.GridBagConstraints(2, 0, 3, 0, 0.6D, 1D, Syncfusion.Windows.Forms.Tools.AnchorTypes.Center, Syncfusion.Windows.Forms.Tools.FillType.Both, new Syncfusion.Windows.Forms.Tools.Insets(5, 5, 5, 5), 0, 0, false));
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.