Problems showing another form when user activates the main form
-
Hi I have a dialog form that has validation in it. If things are invalid, another window appears with the list of errors that they can double click on and be taken to the point of the error. What I would like to do is not have this error window appear in the taskbar and have the window appear when the main dialog regains focus. I've looked arround and tried this
private void Form1\_Activated(object sender, EventArgs e) { if (newErrorForm != null) { newErrorForm.BringToFront(); this.Focus(); } }
but this causes the error window to always have focus even though I'm shifting it back to the main form. Is there a way to achieve this? Many Thanks
The FoZ
-
Hi I have a dialog form that has validation in it. If things are invalid, another window appears with the list of errors that they can double click on and be taken to the point of the error. What I would like to do is not have this error window appear in the taskbar and have the window appear when the main dialog regains focus. I've looked arround and tried this
private void Form1\_Activated(object sender, EventArgs e) { if (newErrorForm != null) { newErrorForm.BringToFront(); this.Focus(); } }
but this causes the error window to always have focus even though I'm shifting it back to the main form. Is there a way to achieve this? Many Thanks
The FoZ
TheFoZ wrote:
What I would like to do is not have this error window appear in the taskbar
There's an option "ShowInTaskbar" that stops that.
"If you can't explain it simply, you don't understand it well enough" ~ Albert Einstein "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." ~ Paul Neal "Red" Adair Now reading: 'The Third Reich', by Michael Burleigh
-
TheFoZ wrote:
What I would like to do is not have this error window appear in the taskbar
There's an option "ShowInTaskbar" that stops that.
"If you can't explain it simply, you don't understand it well enough" ~ Albert Einstein "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." ~ Paul Neal "Red" Adair Now reading: 'The Third Reich', by Michael Burleigh