Comment fermer un formulaire ou une fenêtre en VB6 ?
Solved
Anonymous user
-
Polux31 Posted messages 7219 Status Member -
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
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
-
-
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 -
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