Setting an Icon in a Form

  • Thread starter Thread starter Joel Chacon
  • Start date Start date
J

Joel Chacon

Hi.

I'm trying to simply add a custom designed Icon to my forms.
I made the .ico file in VisualStudio and saved it.

Then, I set the Icon property of the Form and... it works!... but; after
that, sometimes, the icon I designed is replaced by a gray defult-like icon.
What happened?

I tried setting the Icon property programatically with the same result.

Any help?

Thanx... Joel
 
Hi.

I'm trying to simply add a custom designed Icon to my forms.
I made the .ico file in VisualStudio and saved it.

Then, I set the Icon property of the Form and... it works!... but; after
that, sometimes, the icon I designed is replaced by a gray defult-like icon.
What happened?

I tried setting the Icon property programatically with the same result.

Any help?

Thanx... Joel

Joel

A VS icon file usually contains two icons - 16x16 and 32x32. If
you only designed one of them you can bet the form is using the
other - which will be blank.

You also need to set the ion for the project - right click on
the project in Solution Explorer, select properties and set the
icon in the dialog that pops up.
 
Back
Top