which form event to use?

Hi,

I want to add a fading effect to the form before exit. What i did is i put a timer onto the form, set it to disable initially, after the user click the exit button on the top right coner of the form, it will be switched on to "enabled", and the effect code will be executed. But i don't know where to put this code (under which form event ), I have tried to put it under "form1_formclosing", but it didn't help. Can any one help thanks






Answer this question

which form event to use?

  • Mowali

    in the program, i prefer not using a button or menu bar, so the only way to allow the user to exit is to click the "X" button on the top-left corner. is it feasible

  • Mike9000

    Put the code in the Formclosing event..... :)



  • Darth Hamsy

    when the user presses the button to exit, and you want this fading event - then place the code in the button_click event (Double click the button)

  • NeilMarshall444

    Answer provided in this thread.


  • which form event to use?