Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MyButton.DialogResult
Message
De
14/01/2005 12:32:52
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00977250
Message ID:
00977264
Vues:
27
There's a DialogResult property in the Property Sheet already for buttons ... is this not working for you?

~~Bonnie


>How can I assign DialogResult to my button using the designer (property sheet)? I know how to add it though code, but sometimes the framework removes the line where I assign the DialogResult to the button.
>I use the following code to assign DialogResult to my button:
>
>this.btnCancel.DialogResult = DialogResult.Cancel;
>
>
>I've got a feeling I need to add some additional code, since I sometimes get a complietime warning, but if I can find out how it is added in the designer I can figure out where I need to add code myself.
>
>Thanks,
>Einar
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