Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Interface to refresh a form from a user control
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01384478
Message ID:
01384481
Vues:
30
Just to update you - It was staring me in the face - In the base class of my usercontrol I added a property of type IRefreshForm - then overrode the OnLoad event with this
public IRefreshForm RefreshForm;

protected override void OnLoad(EventArgs e)
{
    base.OnLoad(e);
        
    if this.ParentForm is IRefreshForm)
    {
        this.RefreshForm = (IRefreshForm)this.ParentForm;
    }
}
works like a charm
Regards,
Peter J. Kane



Pete
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform