Go to English page

ViaThinkSoft CodeLib

Dieser Artikel befindet sich in der Kategorie:
CodeLibProgrammierhilfenC#

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 Mitbegründer