Results 1 to 3 of 3

Thread: How to make a form fade away?

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    P.R.China
    Posts
    4

    Post

    I want to make a form fade away gradually
    and another form appear gradually?
    How can I do it? By Windows API?
    Or another way?
    You can eamil me at [email protected]
    Thanks for your help.

  2. #2
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    Post

    the aim is not verry clearly explained...i mean how do u wish the form to fade away ??
    1 - random pixels?
    2 - shrinking form?

    for random pixels i dont havew any idea for now but the the second alternativ u can paste the following code into a form :

    Private Sub Command1_Click()
    Timer1.Enabled = True
    Timer1.Interval = 1
    Form2.Show
    End Sub

    Private Sub Timer1_Timer()
    If Form1.Height=405 And form1.Width=1680 Then
    Timer1.Enabled = False
    form1.visible = false
    end if
    Form1.Height = Form1.Height - 300
    Form1.Width = Form1.Width - 300


    End Sub

    this code will reduce the size of form1 until it gets unreducable and then hides it
    u can do the inverse to make the other form appear gradually ... i hope this was what u were looking for ..

    note : create on the form a timer and a command button


    - regards -
    - razzaj -

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    P.R.China
    Posts
    4

    Post

    I mean I hope to make a form fade-out and
    another form fade-in. Thanks for your
    advice.

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