Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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,

Jarod
Posted

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....

Jarod

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...