Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding an icon to a winforms project in 2.0
Message
From
10/05/2007 00:51:31
 
 
To
09/05/2007 23:50:04
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01224000
Message ID:
01224044
Views:
10
I don't have .net up rite now, but I recall helping a coworker with this a couple weeks ago. This was C#, but hopefully similar. He placed some pics in a resource file, then referenced it thru:

.Name of file

(Replace Namespace with your name of namespace)

>OK, so I added a new icon to my project and customized it there. I guess that would mean that it is a resource file. However, when I set up the icons (in both of the places you mentioned) I pointed to the file in the file system, and the property sheet seems to see it. However, when I launch the project, it goes to a generic looking icon.
>
>>How are you setting the icon? In the Form Property Sheet, there's an icon property that you set. That's pretty easy. If you're talking about making the application itself (the EXE) have an icon, right-click on the project in Solution Explorer and choose Properties. On the Application tab of the project's properties is the place to choose the icon. I notice that you can find one from a file or get it from a Resource file. I don't usually bother with putting them in a Resource file, I just browse to one on my machine.
>>
>>~~Bonnie
>>
>>
>>>I am trying to add a custom icon to a winforms application. I added it to my project, and I am trying to set the forms to have that icon, as well as the project itself.
>>>
>>>However, when I run the project and open the forms, it has a generic gray/white icon file... not the custom icon I spend waaaay too much time making.
>>>
>>>Any advice?

(On an infant's shirt): Already smarter than Bush
Previous
Reply
Map
View

Click here to load this message in the networking platform