Jarod Posted July 22, 2003 Posted July 22, 2003 Hello, I have a form with OK and CANCEL buttons. This form is shown as a modal form. The problem is that I want to add a third button (a CLEAR one) And this button shall not close the form but only clear all the control of the form (and clicking in it will close automatically the form as it is a modal one...) Is there a way of doing this ? Using another control, setting a property, ... Thanks, Quote Jarod
*Gurus* divil Posted July 22, 2003 *Gurus* Posted July 22, 2003 If you just put an ordinary button on the form, the button won't make the form close itself. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Jarod Posted July 22, 2003 Author Posted July 22, 2003 You are right... I haven't seen that my button had the DialogResult property set to "Cancel" (and that's what was closing my form) My mistake.... Quote Jarod
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.