I have a form with (to make things simple) a ListBox control and a Frame control, both streching vertically to occupy the height of the whole form.

As I want to accomodate users running at lower resoltions, I want to make the Frame "autohidable" , meaning that normally I want the ListBox to take up the whole form, and clicking a button makes the Frame slide into view.

I can do this without animation (just change the Visible property), but how can I make animation to do this? It should be something like the a menu sliding in Windows 98, a task pane sizing in Windows XP, etc.

I could just do it in a For loop, incrementing the size of the frame by 10 twips each time, but the Frame would resize faster or slower on different systems.

Just reply if this even makes sense!