ShowDialog and Adverting Cancel button

M

Matthew

I have a popup "Property" form that I want to be used as a dialog box.
I want the user to be able to cancel their addition of the property
wtihout closing the form. .Net however automatically catches the
"Cancel" button and processes it as such and closes the form. How do I
bypass this event and just keep the form open?
 
M

Michael C

Matthew said:
I have a popup "Property" form that I want to be used as a dialog box.
I want the user to be able to cancel their addition of the property
wtihout closing the form. .Net however automatically catches the
"Cancel" button and processes it as such and closes the form. How do I
bypass this event and just keep the form open?

Either stop it being the cancel button or do a cancel in the form closing
event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top