Translucent Forms - Fade out

smig

Registered User.
Local time
Today, 09:05
Joined
Nov 25, 2009
Messages
2,209
I'm trying Dom DXecutioner's Translucent forms

is there any event I can use to create the fadeOut effect, or should I run the code before any Close command ?
 
The EVENT for the On Close Property wasn't implemented on his example form but the VB code was in there. Just paste his code into your form's On Close:

Private Sub Form_Close()
'// load the form in full transparent mode
Call SetTranslucent(Me.hWnd, 0)
'// ensure the form is visible for proper fade effect
'// (thought still full transparent)
Me.Visible = True
'// process fade in effect and provide the opacity value
'// not to exceed 255
Call UIProcessFadeOut(Me, UIOpacity)

End Sub
 
Thanks

I tried it before and it didn't work.
I tried it now and it work. Guess I did some stupid mistake in my first try :D
 

Users who are viewing this thread

Back
Top Bottom