Setting an Icon in a Form

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
 
J

Jeff Gaines

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.
 

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