Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Interface to refresh a form from a user control
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Using Interface to refresh a form from a user control
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:
01384478
Vues:
102
Hi All, The scenario I have in one of my apps is: I have a master form with a TabControl, the TabControl loads TabPages programatically - which in turn load predefined usercontrols - phew ! . Can you think of a way using interfaces to make my usercontrols *aware of a method* in my master form (which will implement the interface ) which they can call to refresh the form ( I hope this makes sense ? ) . I got the idea of using an interface to achieve this from a recent thread in which Bonnie Berent suggested using an interface to refresh a calling form from a called one. What I have at the moment is a static public property in my usercontrols of type IRefresh, which I set in the main form to point the usercontrol to my form ( god I just read this back - and even I don't understand it !) - but the problem is , I have to do this every time I add another TabPage and usercontrol - sorry but this the best I can do to try and explain
Regards,
Peter J. Kane



Pete
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform