Results 1 to 4 of 4

Thread: The Close Program Button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Brisbane, Qld, Australia
    Posts
    78

    Question

    Hi,

    I am having a problem with the X or close program button. When a user clicks on the 'x' it closes the program but keeps the program running is. How can i make the 'x' button end the whole program? Any help would be appreciated and thanx in advance.

    Mike

  2. #2
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Thumbs up this should help

    Set your program to nothing

    set form1 = nothing

    Matt

  3. #3
    Guest
    Hi!

    Maybe there's an invisible form hanging 'round somewhere.
    If this is the case try
    Code:
    Dim frm as Form
    For Each frm in Forms
        Unload frm
    Next frm
    ... in the Form_(Query)Unload() Event of your Form.

    Regards,
    da_bob
    ______________

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Brisbane, Qld, Australia
    Posts
    78
    Thanks da_bob That bit of code fixed it. I couldn't locate the form that was still in memory. Thanks once again

    Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width