Re: AnimateWindow Problem
Welcome to VBF!
Can you post your code?
Re: AnimateWindow Problem
Have you tried my submission from the CodeBank? I suggest using the code from post #22. You can add the FormAnimator class to your project and then you would simply add a class-level variable to your Form of type FormAnimator something like this:
VB Code:
Private animator As New FormAnimator(Me, _
FormAnimator.AnimationMethod.Slide, _
FormAnimator.AnimationDirection.Up, _
300)
and you should find that it slides up smoothly.
Re: AnimateWindow Problem
jmcilhinney,
Your code was very similiar to mine, but I tried yours and it has the exact same problem. I'm using a custom shape form with transparency(not Regions), could that have something to do with it?
Re: AnimateWindow Problem
Quote:
Originally Posted by Tyler-2000
jmcilhinney,
Your code was very similiar to mine, but I tried yours and it has the exact same problem. I'm using a custom shape form with transparency(not Regions), could that have something to do with it?
I'm quite sure it does. The form probably can't be redrawn quickly enough to keep up with the animation. You could try increasing the duration a bit, but I'm not confident that that will make a difference. You could try using the Blend effect instead, so your form behaves like the Outlook new mail notification, although I'm not sure that will make a difference either.
Re: AnimateWindow Problem
Making the duration longer helped a little, it made the black bar thinner. The blend effect just goes from black to the form instantly. Then I tried Centre with a duration of 50, and the black area is hardly noticeable so I may keep it that way.
I'm wondering how fast a PC needs to be to draw a custom form with a slide animation smoothly. My system is a P4 2.4Ghz with a geforce4 128mb.