Events for PageChange - Wizard for Windows Forms Forum Cart Not logged in Log In Register Forgot Password Resend Validation E-mail Products WPF Controls WinRT Controls Silverlight Controls WinForms Controls ASP.NET Controls Code Writer App Icons Download Evaluations Freeware Online Demos Purchase Shopping Cart Price Lists Sales FAQ Support My Account Support Tickets Knowledge Base Consulting Services Community Blog Twitter Page Discussion Forums Polls WPFpedia Company About Us Contact Us Policies Our Customers Testimonials News Room Media Kit Careers Back to Forum Previous Thread Next Thread Latest Release: Discussion Forums Wizard for Windows Forms Events for PageChange Posted 6 years ago by Logicway Comments (9) Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA Let me answer your questions.... NextButtonClick will fire only when you press the Next button. If that is the only time you ever will cancel page changes then that is a good place to validate/cancel the page change. SelectionChanging happens after the button click events if the button click events aren't cancelled. e.Cancel in them do the same thing, just the button one occurs first and the SelectionChanging can happen for any page change, not just next button clicks. The selection change is related to the Wizard control's selection so we just never added one to the pages. Actipro Software Support Posted 6 years ago by Logicway Thanks for your answers. Will the SelectionChanging/SelectionChanged events added to the pages in a future release? This will make it easier to handle pagesequencing and pagecancelling separatly. Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA Actipro Software Support Posted 6 years ago by Logicway Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA Yes, you are correct on both. e.Cancel tells us to cancel the default page change that will occur. By doing that AND by you specifying a new selected page, you are forcing it to go to the page of your choosing. Actipro Software Support Posted 6 years ago by Logicway How can I make the NextButtonClick-event go directly to the next page? I am doing some time-consuming things in the NextButtonClick-event, even using a backgroundworker does not show the next page, until the time-consuming things finishes. I want it to show the next page immediatly, and perform all the action on the new page. Something like this: if (PageIsValid) else Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA When doing time consuming process you should definitely put the time consuming code in a BackgroundWorker so that it executes in a separate thread and calls back when complete. So are you saying you already did do this and put your processing code totally within a BackgroundWorker? If so I would think that it would allow the UI to display. Actipro Software Support Posted 6 years ago by Logicway Yes, I indeed put the time consuming code in a BackgroundWorker, but still the new page is not displayed, until all code finishes. I now used the SelectionChanged event, and used some boolean-values to execute the code only once, and it is working. But still, this would be a point of improvement. Maybe you should check this. Also I am still missing the SelectionChanging and SelectionChanged events for the pages. And why doesn't the SelectionChanged event have pagecancel-events? Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA Actipro Software Support which was after the last post in this thread. Add a Comment Please log in to a validated account to post comments. Products WPF Controls WinRT Controls Silverlight Controls WinForms Controls ASP.NET Controls Code Writer App Icons Download Evaluations Freeware Online Demos Purchase Shopping Cart Price Lists Sales FAQ Support My Account Support Tickets Knowledge Base Consulting Services Community Blog Twitter Page Discussion Forums Polls WPFpedia Company About Us Our Customers Testimonials News Room Media Kit Careers Contact Us return false; type: 'POST', cache: false, async: false, else return false; return false; doctype: '', return false; type: 'POST', cache: false, async: false, else
Clker.com is owned by Rolera LLC, 2270 Route 30, Oswego, IL 60543 support\at\clker\dot\com
Comments