473,396 Members | 1,998 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,396 software developers and data experts.

How to set the icon of winform

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?
Mar 13 '06 #1
2 20038
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ad" <fl****@wfes.tcc.edu.tw> wrote in message
news:ez**************@TK2MSFTNGP09.phx.gbl...
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?

Mar 13 '06 #2
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ad" wrote:
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?

Mar 13 '06 #3

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

Similar topics

1
by: Sasa | last post by:
Hi I'm hosting a web browser control (WBC) on a form in a vb.net winform application. When accessing an asp.net application that contains a signed applet from IE, a java notification icon...
1
by: jani | last post by:
Hi all, does anyone know how to take a screenshot of a winform using c#? I have an Add-In program for MS Word in c#, and want to render the WinForm to a gif image, then insert the screenshot into...
3
by: Mrinal Kamboj | last post by:
Hi , I am doing some experimentation , so i created a winform exe , that on load event creates a NotifyIcon object for System Tray Icon . Now if i run that application normally by VS.net or...
1
by: Joe Thompson | last post by:
Hi, Im using VC++ 2003 for a WinForm application. How do I change the application's icon (the one that shows up in WIndows Explorer) to one of my choice? Thank you, Joe
3
by: adh | last post by:
Please refer me to a well developed WinForm Hierarchical DataGrid sample code. I would like to save the cost and troubles of an 3'rd party winforms grid. Thanks, adh
0
by: siemsje | last post by:
I've created an app in win2k with a winform using FormBorderStyle = none. With this setting, the app icon is not displayed in the button in the taskbar when the app is running. If I change the...
0
by: Gardner | last post by:
I am having some problems with localizing my project to support multiple languages. It got really messy, and finally I created a small sample project that clerifies the problem's source, but I...
8
by: =?Utf-8?B?VG9tYXM=?= | last post by:
Hello, I have made a component to use in a form. I have add the component to the tools bar in Visual Studio 2005 to use in more than one project. I want to change the Icon asigned...
1
by: piercy | last post by:
Hi, ive been trying to produce something using a listview control which shows error messages for the emails sent from my application. Its a wierd concept so im going to try explain it best i can. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.