A
Alistair George
Having a bit of a battle here with getting a form on instantiation to
the front. EG the user would think that it was not running because the
window is hidden behind eg explorer. This works:
private void frmMain_Shown(object sender, EventArgs e)
{
// Make this form the active form and make it TopMost
this.ShowInTaskbar = false;
this.TopMost = true;
this.Focus();
this.BringToFront();
}
But, it leaves the window permanently in front of all windows. In
delphi, we say bringtofront, and it does just that, but in C#
bringtofront seems a bit flakey, and topmost is too invasive.
Thanks. Al.
the front. EG the user would think that it was not running because the
window is hidden behind eg explorer. This works:
private void frmMain_Shown(object sender, EventArgs e)
{
// Make this form the active form and make it TopMost
this.ShowInTaskbar = false;
this.TopMost = true;
this.Focus();
this.BringToFront();
}
But, it leaves the window permanently in front of all windows. In
delphi, we say bringtofront, and it does just that, but in C#
bringtofront seems a bit flakey, and topmost is too invasive.
Thanks. Al.