Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call a form method from a usercontrol
Message
 
À
29/08/2003 00:30:03
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00824465
Message ID:
00824848
Vues:
19
I would do it by raising an event from the usercontrol. The forms that want to do something with will simply do it!


>I have a usercontrol that contains a button. I want to place this button on several different forms. When the button is pressed I want the logic to check to see if a method exist on the form containing the usercontrol called "ABC". If so execute it.
>
>In FoxPro you could do this by referencing thisform.
>
>How would you do this in VB.NET?
>
>TIA
>Robert
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform