public void SelectDevice() { fs = new FormSelect(); fs.btn_done.Click += new EventHandler(btn_done_Click); _wh = new WinFormsWindowMessageHook(fs); fs.Devlist = GetScanersList(); fs.ShowDialog(); fs.BringToFront(); }