StrataFrame Wizard Control and error control


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No problem Smile
Mike Rogers
Mike Rogers
StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)
Group: Forum Members
Posts: 23, Visits: 723
Thanks Trent,  works like a charm.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Mike, the two are not actually conntected.  All you need to do to prevent navigation is handle the NextClicked event on the Wizard Control or the WizardPage (either one depending on your needs) and set the CancelNavigation event arg to True:


Private Sub WizardControl1_NextClicked(ByVal e As NextBackEventArgs) Handles WizardControl1.NextClicked
        e.CancelNavigation = True
End Sub

Mike Rogers
Mike Rogers
StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)
Group: Forum Members
Posts: 23, Visits: 723
I have a field that is required to be completed before moving to the next page.

Private Sub WizardControl1_NextClicked(ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.NextBackEventArgs) Handles WizardControl1.NextClicked

If txtRecordSourceName.Text = "" Then

                        EVGCI.MessageDialog(AppError, "ERROR", "Please Select a Record Source before clicking Next")

bolError = True

WizardControl1.CurrentPageIndex = 0

WizardControl1.MoveToPreviousPage()

WizardControl1.MoveToLastPage()

End If

End Sub

 

I need to force the wizard control to stay on the current page if you have incomplete fields.

Thanks Mike


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search