We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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) to this would create padding around this control.


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 : http://www.syncfusion.com/support/user/uploads/11054_wizard632203922859735456.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
1223 04/30/2011 07/10/2014 WinForms WizardControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon