Results 1 to 3 of 3

Thread: VB - Closing child forms with a zoom out effect

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    VB - Closing child forms with a zoom out effect

    just place this code in the form queryunload event

    VB Code:
    1. Me.Picture = LoadPicture("")
    2. DoEvents
    3. Me.BackColor = vbBlack
    4. On Error Resume Next
    5. Dim i As Long
    6. For i = 1 To Me.Height
    7.     Me.Top = Me.Top + 1
    8.     Me.Height = Me.Height - 2
    9.     Me.Left = Me.Left + 1
    10.     Me.Width = Me.Width - 2
    11. Next
    12. DoEvents

    hope u like it

  2. #2

  3. #3
    Hyperactive Member BrandonTurner's Avatar
    Join Date
    Sep 2001
    Location
    East Lansing, Michiagn
    Posts
    268
    adding a doevents in the loop lets the screen update where the form is no long at instead of letting it just be gray until the program closes.

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