Comment fermer un formulaire ou une fenêtre en VB6 ?

Solved
Anonymous user -  
Polux31 Posted messages 7219 Status Member -
Hello,

I have currently consulted all the answers on this topic but I haven't found what I'm looking for.
Let me explain, I start my application in VB6 by opening a form. So far, the only solution I have to completely close the application is to click on the cross at the top.
I want to create a "Quit" button that effectively makes me exit the application. I tried unload(nom_du_form) but that only hides the window and the process keeps running in the background, even if it's compiled as an exe, for example. So that's not the solution I'm looking for. Does anyone have an idea to help me actually quit the program in the same way as if we clicked on the cross?
Thanks in advance
Cédric
Configuration: Windows XP Firefox 2.0.0.14

3 answers

  1. Anonimus
     
    Unload Me

    Or

    End
    1
    1. Anonymous user
       
      Thank you, it's End that I was looking for. Now I'm thinking it's all silly!
      0
  2. Polux31 Posted messages 7219 Status Member 1 204
     
    Hello,

    You need to do this:

    Private Sub cmdQuitter_Click() Unload Me End End Sub


    The "End" closes the application

    ;o)

    polux
    --
    “What one conceives well is clearly stated, And the words to say it come easily.”
    Nicolas Boileau
    1
    1. Anonymous user
       
      Thank you very much. For the first time using forums, this is an ultra-fast response!
      0
  3. Polux31 Posted messages 7219 Status Member 1 204
     
    You're welcome... it's the efficiency of CCM...

    ;o)
    --
    "What one conceives well is clearly stated, and the words to say it come easily."
    Nicolas Boileau
    0