Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back button doesn't trigger event handler #5

Open
lucija1 opened this issue Jan 13, 2020 · 1 comment
Open

Back button doesn't trigger event handler #5

lucija1 opened this issue Jan 13, 2020 · 1 comment

Comments

@lucija1
Copy link

lucija1 commented Jan 13, 2020

Hi,
I have an issue with the back button event handler. I want to disable the finish button when I click the back button but when debugging I found that my program doesn't even enter the back button event handler function, but it works fine for other buttons.

this.advancedWizard1.Back += new System.EventHandler(this.AdvancedWizard1_Back);

private void AdvancedWizard1_Back(object sender, EventArgs e)
        {
            advancedWizard1.FinishButtonEnabled = false;
        }
@germistry
Copy link

Hi,
I have an issue with the back button event handler. I want to disable the finish button when I click the back button but when debugging I found that my program doesn't even enter the back button event handler function, but it works fine for other buttons.

this.advancedWizard1.Back += new System.EventHandler(this.AdvancedWizard1_Back);

private void AdvancedWizard1_Back(object sender, EventArgs e)
        {
            advancedWizard1.FinishButtonEnabled = false;
        }

I'm just using this package at the moment for a 'quick' wizard control in a larger project I'm working on (which won't use Winforms eventually - just my fast & dirty GUI when I need one!). Anyway, I noticed this problem with the back button event handler and compared the nuget package with this repo. It appears that perhaps this repository is a bit ahead of the nuget package. I ended up uninstalling the nuget package, downloading this code and sticking it in a vendor folder, fixed some ambiguous errors in VS and managed to salvage the forms I started already that depended on the package!

Anyway just my 2 cents. Thanks Mr Steve Bates for sharing this nicely written wizard. I am one of the people that also still uses Winforms!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants