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.
Unfortunately, activation email could not send to your email. Please try again.

How do I add more Buttons along with the existing Navigation Buttons?

 

You can add more buttons to the wizard control along with the existing Navigation buttons by creating a new button and then by setting the GridBagLayout constraints for the button to position it correctly along with other buttons using GridPosX and GridPosY.

Here is the code snippet:

C#

// To add a new button

Button btn = new Button();

btn.Text = "New Button";

this.wizardControl1.Controls.Add(btn);

// Set the constraints for the newly created Button

this.wizardControl1.GridBagLayout.GetConstraintsRef(btn).GridPosX = 6;

this.wizardControl1.GridBagLayout.GetConstraintsRef(btn).GridPosY = 5;

VB

' To add a new button

Dim btn As Button = New Button()

btn.Text = "New Button"

Me.wizardControl1.Controls.Add(btn)

' Set the constraints for the newly created Button

Me.wizardControl1.GridBagLay.GetConstraintsRef(btn).GridPosX = 6

Me.wizardControl1.GridBagLay.GetConstraintsRef(btn).GridPosY = 5

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

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.