473,387 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

form's icon

Vic
I am trying to change an icon associated with my application's main form and
the application itself.

1. I selected my main form in IDE "Solution" tab and went to "Properties"
window.
2. I found "Icon" property, browsed for and selected a new icon.
3. I noticed the icon changed on my form
4. Ran my application and sure thing, the new icon replaced the default .NET
icon.

Several days after that I created yet another icon. I followed the same
steps (see above) to use the new icon, but all in vain. I do see the icon on
the form change in design view, but when I run my app, there is still the
old icon displayed.

I noticed, this is how my icon is loaded (code generated by IDE): asdasd

this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this. Icon")));

Looks like the icon is loaded from resources. Does it mean, that when I am
setting the new icon, my resources aren't updated? Is that a bug? Am I doing
something wrong?

Thanks for your help in advance.

Vic
Nov 15 '05 #1
2 9414
Hi,

I have also experienced problems with altering the program icon in with the
designer. I would recommend loading the icon manually and assigning it to
the Icon property just after the form has been created.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Vic" <ro****@gat.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I am trying to change an icon associated with my application's main form and the application itself.

1. I selected my main form in IDE "Solution" tab and went to "Properties"
window.
2. I found "Icon" property, browsed for and selected a new icon.
3. I noticed the icon changed on my form
4. Ran my application and sure thing, the new icon replaced the default ..NET icon.

Several days after that I created yet another icon. I followed the same
steps (see above) to use the new icon, but all in vain. I do see the icon on the form change in design view, but when I run my app, there is still the
old icon displayed.

I noticed, this is how my icon is loaded (code generated by IDE): asdasd

this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this. Icon")));

Looks like the icon is loaded from resources. Does it mean, that when I am
setting the new icon, my resources aren't updated? Is that a bug? Am I doing something wrong?

Thanks for your help in advance.

Vic


Nov 15 '05 #2
Vic
Thanks, will do.

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:u1**************@TK2MSFTNGP12.phx.gbl...
Hi,

I have also experienced problems with altering the program icon in with the designer. I would recommend loading the icon manually and assigning it to
the Icon property just after the form has been created.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Vic" <ro****@gat.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I am trying to change an icon associated with my application's main form and
the application itself.

1. I selected my main form in IDE "Solution" tab and went to "Properties" window.
2. I found "Icon" property, browsed for and selected a new icon.
3. I noticed the icon changed on my form
4. Ran my application and sure thing, the new icon replaced the default

.NET
icon.

Several days after that I created yet another icon. I followed the same
steps (see above) to use the new icon, but all in vain. I do see the icon on
the form change in design view, but when I run my app, there is still

the old icon displayed.

I noticed, this is how my icon is loaded (code generated by IDE): asdasd

this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this. Icon")));

Looks like the icon is loaded from resources. Does it mean, that when I am setting the new icon, my resources aren't updated? Is that a bug? Am I

doing
something wrong?

Thanks for your help in advance.

Vic

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Microsoft | last post by:
How to make a sizable form with a title and a close button, but no icon and not ControlBox=false ??? Thank
3
by: VJ | last post by:
I am trying to set my Form's Icon property at run time based on certain parameters. I have a imglist in the form for other purposes I would like to use the same image list to keep the Forms icon...
14
by: Kishan Hathiwala | last post by:
Hi i have kept a statusbar in the form with panels = true. and total there 3 panels. whenever i click on the 3rd panel a menu appears showing online and offline and either is enable at a time....
3
by: Nina | last post by:
Hi there, I assigned icon for a window's form using form's Icon property at design time. Now I want to change the icon. I tried to replace the old icon with the new icon using form's Icon...
5
by: Tom | last post by:
I have a main VB.NET application that loads another VB.NET DLL dynamically. Once I have done that, I would like to be able to 'get' the icon of a form in that dynamically loaded DLL. How would...
4
by: randy1200 | last post by:
I have a Windows application that previously had the company logo "MyCompany.ico" added to the upper left-most corner. The company has since issued a new version of "MyCompany.ico" that looks...
2
by: Emby | last post by:
OK, really dumb question - how do I set the icon for a shortcut to a WinForms app? I've set an icon into the main form's Icon property, and its ShowIcon and ShowInTaskbar properties are set to...
2
by: Rainer Queck | last post by:
Hello NG, what are the right dimensions for a window icon, used on a mdi child window? My Problem: I used a third party Icon-Designer to design some icons for my application. Those icons look...
4
by: Marcolino | last post by:
Hi, I have simple needs but I don't know how to implement it. I have application that create Dynamic Button. I need to set the image on this button, getting the icon from a form. So pratically...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.