ViaThinkSoft CodeLib
Dieser Artikel befindet sich in der Kategorie:
CodeLib → Programmierhilfen → C#
If you want to open a new modal form:
If you want to use this form as popup:
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
ViaThinkSoft Mitbegründer