|
Hi, please help if anyone know..
i would like my form to display to user, but without showing out form's icon and title (name) in taskbar.. How could i do that?
I already tried: this.FormBorderStyle = FormBorderStyle.None; but it doesn't work for me..
Thanks.. |
| wonderfulStar Friday, April 24, 2009 2:00 AM |
Hi,
Are you setting this property in Form Designer at design time? Or, are you specifically writing this piece of code at some place? In which file and at which place,have you written this code if so? Regards,
Lakra :)
- If the post is helpful or answers your question, please mark it as such. |
| Abhijeet Lakra Friday, April 24, 2009 4:29 AM |
Thanks for the reply.. I want to write the code at the form_load method.. which the class is inherit the Form Class (public class MainForm: Form),
private
void MainForm_Load(object sender, EventArgs e) { this.FormBorderStyle = FormBorderStyle.None;
}
i want to show the form, but the form's icon and title doesnt appear in taskbar.. how to do it?
Thanks..
|
| wonderfulStar Friday, April 24, 2009 6:01 AM |
Well, I think- I have understood your issue.
You are probably having an MDI Parent form for this Form.
Please place the same code in the MDI Parent Form similarlly and not in this Form. It should work with charm.
void MDIParentForm_Load(object sender, EventArgs e) { this.FormBorderStyle = FormBorderStyle.None; }
Regards,
Lakra :)
- If the post is helpful or answers your question, please mark it as such. |
| Abhijeet Lakra Friday, April 24, 2009 6:13 AM |
HI, Aby Lex.. i already tried as you suggested...but it doesn't work.. i post the codes here, please correct me if i'm wrong..
private void button1_Click(object sender, EventArgs e)
{
using (MainForm form = new MainForm())
{
form.FormBorderStyle= FormBorderStyle.None; form.ShowDialog(this);
}
}
Thanks..
|
| wonderfulStar Friday, April 24, 2009 6:34 AM |
Well, the code confuses me a bit.
Please answer few of my queries:
1. Do you have an MDI Form in your Application? 2 . Have you placed the the Form(whose icon and title is not to be shown) on the MDI Form?
Regards,
Lakra :)
- If the post is helpful or answers your question, please mark it as such. |
| Abhijeet Lakra Friday, April 24, 2009 6:47 AM |
Hi, Aby Lex..
Thanks for your help and suggestion.. I already found the solution.. i change the code to "this.ShowInTaskbar = false;" and it works...
I really appreciate ur reply and help.. Thanks for your time~
- WonderfulStar -
|
| wonderfulStar Friday, April 24, 2009 7:30 AM |
That's wonderful. Happy Coding! Regards,
Lakra :)
- If the post is helpful or answers your question, please mark it as such. |
| Abhijeet Lakra Friday, April 24, 2009 7:36 AM |