This project has moved and is read-only. For the latest updates, please go here.

Focus on control when pressing the "Next" or "Back" button

May 5, 2015 at 3:56 PM
Hi,
Is there any way to set a focus on a control on the when the selected WizardPagewhen change (like after pressing the "Next" or "Back" buttons).

I tried to "SetFocus()" function on the "Initialize" and the "VisibleChanged" functions, but didn't succeed.

Thank you in advance.
May 5, 2015 at 9:29 PM
I would play with the sort order of the controls on the page to put the one needed first on that list.

I would look at putting the SetFocus call on the SelectedPageChange event.
May 5, 2015 at 10:12 PM
Thanks.

The "Focus()" function "SelectedPageChange" works on every page except the 1st page.

Can you advise why?
May 6, 2015 at 2:22 AM
I'm not sure, but I think it may be a bug. I have added some code that will show up in the 2.0.10 release that may fix it. The first page is selected when the container's handle is created. You could put some code in a HandleCreated event handler to deal with the first page until I figure out why it doesn't fire there.