Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MyButton.DialogResult
Message
General information
Forum:
ASP.NET
Category:
Forms
Title:
MyButton.DialogResult
Miscellaneous
Thread ID:
00977250
Message ID:
00977250
Views:
70
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
Semper ubi sub ubi.
Next
Reply
Map
View

Click here to load this message in the networking platform