Results 1 to 2 of 2

Thread: Control Boxes Problem!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    14

    Post

    How can I make my control boxes end my entire program including the background I have, rather than just the one form? I Need it to take the blue fade background i have away. When i click on the cole x button it closes the program but not the blue background. Any idea's?

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Place the code to unload any other Forms in this Forms QueryUnload or Unload Event, ie.
    Code:
    Private Sub Form_Unload()
        'Unload Every other Form that is Currently Loaded
        Dim oFRM As Form
        For Each oFRM In Forms
            If oFRM.Name <> Name Then 
                Unload oFRM
                Set oFRM = Nothing
            End If
        Next
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


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