开发者

Form transitions in VB.NET without using Timers

开发者 https://www.devze.com 2023-03-11 05:16 出处:网络
For couple of hobby projects of mine, I\'ve been performing form transitions (fade-in/out, slide-left/right) using timer control, and I know its not the right way to do it. Using timer has its o开发者

For couple of hobby projects of mine, I've been performing form transitions (fade-in/out, slide-left/right) using timer control, and I know its not the right way to do it. Using timer has its o开发者_运维问答wn disadvantages as it is a CPU hog if logic is complex and also, transitions are not smooth. So, I'm wondering how can I perform form transitions without using any timers and just by using native Windows API or any third-party library. I came across with FlowFX but found that it is limited only to .NET Compact framework.

Thanks...


We don't know what your timer handler is doing without a code sample, but using a timer to do animations is an acceptable method.

Here is another SO question and answer that might show you a better way of coding your timer handler.

The "not smooth" part could perhaps be overcome using double-buffering.

0

精彩评论

暂无评论...
验证码 换一张
取 消