There is the MainForm (Form1), then it opens up a second form with a DataGridView on it ==> after you select the items you want to delete on the DataGridView ==> You click the Delete button ==> After you click the Delete button and it does its job, a MessageBox pops up to let you know that it has completed its tasks...
The problem is that after I click OK on the popup MessageBox, and after it Closes the form with the DataGridView on it, I can't get it to bring the MainForm back to focus, it gets hidden away on the taskbar...
I've tried these, but they didn't work either...
MainForm myMainForm = new MainForm(); myMainForm.Activate(); myMainForm.BringToFront();

New Topic/Question
Reply


MultiQuote









|