hi
i have 3 form
and an exit button in 3rd form
i want to close the whole project when i click exit
i think unload me can only stops that particular form
i want to close the whole project

thank u very much

Recommended Answers

All 5 Replies

Hi,

In Exit button, along with unload give "End"

Private Sub cmdExit_Click()
    Unload Me
    End
End Sub

REgards
Veena

thank u

hi
i have 3 form
and an exit button in 3rd form
i want to close the whole project when i click exit
i think unload me can only stops that particular form
i want to close the whole project

thank u very much

Private Sub Cmd_exit_Click()
If MsgBox("Do you want to exit?", vbYesNo + vbCritical, "exit") = vbYes Then End

End Sub

thank u Mr. عبدالباري

thank u So much

Actually it is really very help full for me .....
I have done all things ..... Becoz this is my first project of VB
I am Java Programmer .... Becoz of the some os information i have choose VB
.... In sense of it is very easy.... I have done every thing easily..... But at last for quiting from project.... I got the problem..... From last hour i was finding........................................................................
but finally i get it....................
Thank u so much

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.