Re: Problems using AnimateWindow() from windows 32 API in .NET C#

In article <#CgVTqjWFHA.2256@xxxxxxxxxxxxxxxxxxxx>, VR@xxxxxxxx says...
> Hello,
> I have problems displaying a .NET form, using animation from Win32 API.
> The form, shown using AnimateWindow() API (imported from user32.dll) appears
> without controls.
> ...

Rather than setting Visible to true in the ShowAnimate method, add this
to your AnimForm class.

private const int WM_PRINT = 0x0317;

protected override void WndProc(ref Message m)
if (m.Msg == WM_PRINT)
if (!this.Visible)
this.Visible = true;

base.WndProc(ref m);

The only control that does not render itself correctly with this code
seems to be the RichTextBox.

Larry Steeger
RusSte, Inc. -