Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Interface to refresh a form from a user control
Message
De
01/03/2009 10:03:14
 
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:
01384820
Vues:
35
That looks like it should work just fine, Pete. Aren't interfaces handy? =0)

Again, as I mentioned in my other post, I'm sorry that I couldn't get back to you sooner ... I hope that you didn't pull your hair out too much over this one. I'm glad you figured it out!!

~~Bonnie



>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform