Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent User from choosing a tab
Message
De
31/10/2007 14:16:04
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
31/10/2007 13:12:21
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Divers
Thread ID:
01265436
Message ID:
01265466
Vues:
7
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform