How to set the icon of winform

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I have set the icon of my applicaiton to a icon, like my.icon.
But the icon of icon is the same as default.
How can I set the the icon of every winforms of my applicaiton to the icon
of applicaiton?
 
ad,

In order to set the icon of every form in your app, you should create a
base class form which sets the icon in the constructor. Then, you could
derive all of your forms from that form, and it will have the icon.

Hope this helps.
 
ad,
There are 2 places in a project where you can set the icon. First is the
Project configuration properties where you have set the Application icon. The
other is in each individual form's properties where you set the Form's icon -
which can be the same icon

Of course, if you have a lot of forms, Nicholas' suggestion is the most
elegant way to approach it.
Peter
 

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

Back
Top