Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent User from choosing a tab
Message
From
31/10/2007 14:16:04
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
31/10/2007 13:12:21
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01265436
Message ID:
01265466
Views:
6
Tony,


>I have a MM Maint. form with a Tab Control on it with 5 tabs on it.
>
>The user will generally enter data on the Properties (my Requisition Entry) page, then the user should click on the [Save] button, and then go to the Line Item Entry page to enter more data.
>
>I don't want the use to be able to go to the Line Item Entry page before they save the Requisition record. The reason for this is that some of the data has to come from a correctly saved record.
>
>So, how do I keep the user from clicking on a another tab before saving the data?
>

The tab control has a selectedIndex Changed event. There is also a click event which might be before the change occurs. You can check there to see if your conditions have been met and if not set the selected index back to where you want them or cancel the index change. I would also display a label on the form they were on to let the user know they can't change until they have saved the data.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform