Ok heres what I want to do... I want my program to fade from opactity 0 to opacity 100 when the form loads... ive tried many things, but i cant seem to get anything to work. Please help, I really could use it.
Josh
Printable View
Ok heres what I want to do... I want my program to fade from opactity 0 to opacity 100 when the form loads... ive tried many things, but i cant seem to get anything to work. Please help, I really could use it.
Josh
Opacity is stored as a 'double' value from 0 being transparent and 1 being opaque.
For instance 0.5 is half way.
VB Code:
For d As Double = 0 to 1 Step 0.01 Me.Opacity = d Next d
Ok thanks, I found a solution, but now heres what I need... I have the program masked using Transparency Key, so how do I make it draw in each step? I am using a timer, so on each tick, it adds .01 to the opacity, it may slow the transparency down, but that pink is annoying... anyone help? heres the code:
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Me.Opacity += 0.1 'Look at this, we are increasing the opacity property
'Now let's check to see if the opacity has gone from 1 to 0 yet.
If Me.Opacity = 1 Then 'If it is then
Me.Timer2.Enabled = False
End If
End Sub
Does anyone know???
no one knows?