|
-
Jul 23rd, 2004, 12:37 PM
#1
Thread Starter
New Member
New to vb.net and need a little help.
Ok well im making a splash screen and I want it to fade in when opened. What I have so far is.
Private Sub FadeInTimer_Tick(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FadeInTimer.Tick
If Me.Opacity = 0% Then
Opacity += 0.01
End If
End Sub
What I want it to do is detect that the opacity of the form is 0% and then raise it to 100% with the timer. I can get it to work without the IF but when I add the if it wont detect that the opacity of the form is at 0% so it doesnt raise the opacity. Maybe i am putting in the wrong opacity value for 0%. if someone could help me it would be great. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|