Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus to another tab page
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Setting focus to another tab page
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01362031
Message ID:
01362031
Vues:
67
I have a form with multiple tab pages. On one of the pages, I want to test some conditions and, if those conditions are not met, set the focus to another tab. On the Enter method of the page, I used a statement like:
if (somecondition = false)
{
    mmAppDeskTop.MessageBox.Show("You must take care of business.");
    pgOtherPage.Focus();
    return;
}
The code executes without an error but it doesn't change the focus. Is there some equivalent to "nodefault()" that I need to use?

Thanks.
Linda Harmes
HiBit Technologies, Inc.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform