Office Systems Blog

Joao Livio 2002 - 2008 Portugal

Browse by Tags

All Tags » C# (RSS)
C# How to open a form only once in a MDI Envoirement
YourFormName xForm; foreach (Form childForm in this.MdiChildren) { if (childForm.GetType() == typeof(YourFormName)) { childForm.Focus(); return; } } xForm = new YourFormName(); xForm.MdiParent = this; xForm.Show();