private void CreateForm() { deviceManagerForm = new DeviceManagerForm(this); deviceManagerForm.Activate(); deviceManagerForm.Show(); System.Windows.Forms.Application.Run(); }