M
minimega
Hi to all NG.
I've this problem: in my application I've develop a custom MessageBox
form (larger than the standard CE MessageBox, with big graphics buttons
Yes/No, with his own title bar..). When I display it as new instance of
the form fmCustomMessageButton, in the taskbar appear a new rectangle,
void, without icon or text.
That's right because on fmCustomMessageButton costructor I've placed
the following code:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MinimizeBox = false;
this.MaximizeBox = false;
this.ControlBox = false;
this.Menu = null;
this.Text = String.Empty;
this.Icon = null;
hoping that can serve to hide the new window from the taskbar, however
this doesn't work.
If I set the .Parent property of the CustomMessageBox to the Main
window reference, it become a child of the main window, and the
rectangle hide from the taskbar.
However the fmCustomMessageButton is displayed with the .ShowDialog
method, because it must suspend the code flow until the user choose a
button. The .ShowDialog method seems to disable either the main form,
either the CustomMessageBox and I'm not able to click over any button.
Is there a way to hide an application from taskbar without make it a
child window?
Thanks,
Massimo
I've this problem: in my application I've develop a custom MessageBox
form (larger than the standard CE MessageBox, with big graphics buttons
Yes/No, with his own title bar..). When I display it as new instance of
the form fmCustomMessageButton, in the taskbar appear a new rectangle,
void, without icon or text.
That's right because on fmCustomMessageButton costructor I've placed
the following code:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.MinimizeBox = false;
this.MaximizeBox = false;
this.ControlBox = false;
this.Menu = null;
this.Text = String.Empty;
this.Icon = null;
hoping that can serve to hide the new window from the taskbar, however
this doesn't work.
If I set the .Parent property of the CustomMessageBox to the Main
window reference, it become a child of the main window, and the
rectangle hide from the taskbar.
However the fmCustomMessageButton is displayed with the .ShowDialog
method, because it must suspend the code flow until the user choose a
button. The .ShowDialog method seems to disable either the main form,
either the CustomMessageBox and I'm not able to click over any button.
Is there a way to hide an application from taskbar without make it a
child window?
Thanks,
Massimo