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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Wizard Control - Finish button

Thread ID:





18303 Aug 27,2004 11:14 AM UTC Aug 31,2004 05:49 AM UTC WinForms 2
Tags: Tools
Stuart Turner
Asked On August 27, 2004 11:14 AM UTC

Hi, Is there any way to get the finish button to be in the place of the next button. I can only get it to appear in place of the cancel button. This does not follow the way that microsoft wizards operate. I would like to have the following: Page 1: Next Cancel Page 2: Back Next Cancel Page 3: Back Finish Cancel I also cannot get the buttons to appear with the same spacing. Cheers, Stuart

Administrator [Syncfusion]
Replied On August 27, 2004 08:06 PM UTC

Hi Stuart, You would have to set constraints on the each of the WizardControl buttons as shown in the code below : this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.BackButton).GridPosX = 0; this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.NextButton).GridPosX = 1; this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.CancelButton).GridPosX = 2; this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.FinishButton).GridPosX = 3; 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, 5, 5); this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.CancelButton).Insets = new Insets(5, 5, 5, 5); this.wizardControl1.GridBagLayout.GetConstraintsRef(this.wizardControl1.FinishButton).Insets = new Insets(5, 5, 5, 5); Please refer to the sample application attached that illustrates this and let me know if this meets your requirements. We appreciate your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Stuart Turner
Replied On August 31, 2004 05:49 AM UTC

Thanks for the example. The spacing code works fine. However in your example the order on the last page is: BACK CANCEL FINISH but I want: BACK FINISH CANCEL i.e. the cancel button stays in the same place on all of the pages and on the last page the next button changes to a finish button. The solution I have found is to not have a finish button and to change the text on the next button to finish when the last page becomes visible. Slightly crude but does the trick. Cheers, Stuart


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.

Please sign in to access our forum

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon