Gehe zu deutscher Webseite

ViaThinkSoft CodeLib

This article is in:
CodeLibProgramming aidsC#

If you want to open a new modal form:

            if (Application.OpenForms.Count > 0)
            {
                        Form mainForm = Application.OpenForms[0];
                        mainForm.WindowState = FormWindowState.Minimized;
                        mainForm.WindowState = FormWindowState.Normal;
            }
            Form2 fenster = new Form2();
            fenster.TopMost = true;
            fenster.ShowDialog();
            fenster.TopMost = false;
            fenster = null;

If you want to use this form as popup:

            WindowState = FormWindowState.Minimized;
            WindowState = FormWindowState.Normal;
            fenster.TopMost = true;
Daniel Marschall
ViaThinkSoft Co-Founder