المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Automatic fluid (in theory) resize of Windows Forms App



C# Programming
02-21-2012, 05:00 PM
G'day,

I am writing something to deal with logged multi-user access to our social media accounts, and what I want to do is add a second textbox when the message goes over the Twitter maximum - 140.

What I have at the moment is a form with the controls anchored to their spot on the page. When the second textbox is needed, i call a timer with a 1ms trigger time to expand the size of the form by one 1 px until it's at the "large" size.

The idea behind this is to have the second textbox slide down from behind the first one.

However it is not fluid. Any ideas how I can speed it up or a better way of doing it?

Thanks!
Brendan