private void Form_Load(object sender, EventArgs e)
{
// MDI child forms do not support transparency so do not try to use the Fade method
if (_form.MdiParent == null || _method != AnimationMethod.Fade)
{
NativeMethods.AnimateWindow(_form.Handle, _duration, AwActivate | (int)_method | (int)_direction);
}
}