Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference to a form from another form
Message
De
10/04/2013 17:06:07
 
 
À
10/04/2013 10:43:07
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 5.0
OS:
Windows XP SP2
Divers
Thread ID:
01570178
Message ID:
01570678
Vues:
30
If I have 2 forms and I would like to change a status of a control set on one of the forms from the other form.
E.g. there is a enabled CheckBox on Form1 and Id like to set it to disabled by a Button on Form2.

>>What is the best practice in C# to reference to a form from another form and the form's object?
>>A link to an article or other thread would be appreciated.

>
>Could you give us an example of what you'd like to do? I'm not sure I totally understand what you need. If you need to pass data between forms, I have two blog posts discussing that:
>
>http://geek-goddess-bonnie.blogspot.com/2011/01/passing-data-between-forms.html
>http://geek-goddess-bonnie.blogspot.com/2012/12/passing-data-between-forms-redux_31.html
>
>~~Bonnie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform