ToastNotifications.FormAnimator.Form_Load C# (CSharp) Method

Form_Load() private method

Animates the form automatically when it is loaded
private Form_Load ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        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);
            }
        }