Windows Develop Bookmark and Share   
 index > Windows Forms Designer > not show form's icon and title at the taskbar..
 

not show form's icon and title at the taskbar..

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

You can use google to search for other answers

Custom Search

More Threads

• Where are the "Standard Menu Icons" located?
• Tabcontrol - bug(?) when pasting components on it
• do not allow change of text or deletion of a checkbox control
• UserControl's child container's contents not being serialized
• How can I know the scroll bar reached bottom or top by scroll event control?
• TreeView and Images. Very Poor Quality Viewing
• DesignerHost.exe Name property
• EditorAttribute constructor resolution
• Windows Form Resizing !
• Datagrid and Arrow keys, how to make the arrow move around?