Icon does not appear.

B

Brahm

Hello,
I have an application with a main class subclassing the
System.Windows.Form and i changed the Icon setting for the application
to point to a different icon file. Now, when my application runs, the
icon appearing in the upper left hand side of the window frame is the
default one and not the one i selected. I went back and checked after
compilation and the properties for the form indicate the new icon name i
designated but the application does not display the icon when it runs or
even in design mode.
Here is the line of code that the VS .NET C# has created:
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.BackColor = System.Drawing.SystemColors.Control;
this.ClientSize = new System.Drawing.Size(728, 593);
this.Controls.Add(this.statusBar);
this.Controls.Add(this.lstUserFeedback);
this.Controls.Add(this.tabControl1);
this.Icon =
((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Menu = this.myMainMenu;
this.Name = "MyApp";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "MyApp";
this.tabControl1.ResumeLayout(false);

Any ideas?

Thanks, Please tell me how to reply... :)
BRAHM
 
K

Kevin Spencer

Any ideas?

Hmm. I have an idea that you're not discussing ASP.Net here... That would be
my first idea.
Thanks, Please tell me how to reply... :)

No need to reply. However, you might want to post this on the appropriate
newsgroup.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top