Articles in this section

How to insert padding between the WizardControl’s buttons and the form’s edges

 

The WizardControl internally uses the GridBagLayout manager to arrange controls (including the navigation buttons). You may insert spaces around the buttons using the Insets property. The GridBagLayout.GetConstraintsRef returns the object containing the constraints for a particular control. Specifying an Insets value (as shown in the code below) for this would create padding around this control.


[C#]

this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.NextButton).Insets = new Insets(5, 5, 5, 5);
this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.BackButton).Insets = new Insets(5, 5, 0, 5);
this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.CancelButton).Insets = new Insets(0, 5, 5, 5);

[VB.NET]

Me.wizardControl1.GridBagLay.GetConstraintsRef(Me.wizardControl1.NextButton).Insets = New Insets(5, 5, 5, 5)   Me.wizardControl1.GridBagLay.GetConstraintsRef(Me.wizardControl1.BackButton).Insets = New Insets(5, 5, 0, 5)   Me.wizardControl1.GridBagLay.GetConstraintsRef(Me.wizardControl1.CancelButton).Insets = New Insets(0, 5, 5, 5)

The complete sample demonstrating this is attached here : https://www.syncfusion.com/support/user/uploads/11054_wizard632203922859735456.zip

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied