Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MyButton.DialogResult
Message
From
14/01/2005 12:32:52
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00977250
Message ID:
00977264
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform