views:

14

answers:

1

I am developing windows Forms application, for this i am using SmartClient. Here i click workspace close('X') event at the time i want to display messageBox based on user input (OK/Cancel) i have to decide pane has to be close or not.

A: 

Use the ParentForm.FormClosing event, and set the Cancel property appropriately.

Subscribe to this event in the Load event.

leppie
How to stop form close after click close button.
Ravi
@Ravi: I told you how. I dont have time to spoonfeed, sorry.
leppie