Click to See Complete Forum and Search --> : How to make a form fade away?
Tao LiNan
Nov 30th, 1999, 06:00 PM
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 tln@hitcrc.hit.edu.cn
Thanks for your help.
razzaj
Dec 1st, 1999, 03:18 AM
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 -
Tao LiNan
Dec 1st, 1999, 06:00 AM
I mean I hope to make a form fade-out and
another form fade-in. Thanks for your
advice.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.