VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Windows Roll/Slide Control

by Anthony Dunleavy (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

I have been tinkering with the Windows API AnimateWindow function, and have wrapped it into a user control, which you can drop onto any top-level window. You simply call the controls CloseAnimation method from the form_unload event, and your window will roll or slide up, down, left, or right, or fade or zoom to nothing. This easy to use control has 2 main properties - the "AnimationEffect", and the "EffectDelay". The included example project here shows how easy it is to use. It seems that this API Function exists in Windows 98, ME, 2000, and XP (I was unable to get this to work with Windows 95 or Windows NT). I got varying levels of effectiveness depending on the OS. Keeping the EffectDelay to a minimum (500 or less) usually produces great results. This project has the default delay at 1000 to exagerate the effect, but you should set to 400 or 500 in your projects. Use the "Project1.vbp" to see the example, or include the CoolAnimate.ctl in your project to just use the user control. Hope this is helpful to some of you.

Rate Windows Roll/Slide Control

Download Windows Roll/Slide Control

Download Windows Roll/Slide Control (4 KB)

Windows Roll/Slide Control Comments

No comments have been posted about Windows Roll/Slide Control. Why not be the first to post a comment about Windows Roll/Slide Control.

Post your comment

Subject:
Message:
0/1000 characters