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

Questions about form icons in WinForms apps

Hi,

- Is there a way to that every form in my app use the same icon withouth
adding it to the Icon property one form by one ?

- Do I must add to my app the icon(s) I will use in my forms as embedded
resource, then I must use the assembly.GetManifestResourceStream in order to
assign to my forms ? Is that the correct way ?

- Can I use 24 bit icons ?

Regards
Luis Arvayo
Mar 8 '06 #1
5 2252
Luis,

You should be able to use 24 bit icons if you are using Windows XP (I
believe it is an OS-dependent feature).

As for an easy way to solve this, create a class that derives from Form,
and set the icon in the constructor.

Then, have all of your classes derive from that new Form type that you
have defined, and it should work fine.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Luis Arvayo" <am**********@prodigy.net.mx> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
Hi,

- Is there a way to that every form in my app use the same icon withouth
adding it to the Icon property one form by one ?

- Do I must add to my app the icon(s) I will use in my forms as embedded
resource, then I must use the assembly.GetManifestResourceStream in order
to assign to my forms ? Is that the correct way ?

- Can I use 24 bit icons ?

Regards
Luis Arvayo

Mar 8 '06 #2
Hello Luis,

I found the idea to have icons for all forms not very good, cuz there are
dialogs that don't have icons at all (modals one).

LA> - Is there a way to that every form in my app use the same icon
LA> withouth adding it to the Icon property one form by one ?
LA>
LA> - Do I must add to my app the icon(s) I will use in my forms as
LA> embedded resource, then I must use the
LA> assembly.GetManifestResourceStream in order to assign to my forms ?
LA> Is that the correct way ?
LA>
LA> - Can I use 24 bit icons ?
LA>
LA> Regards
LA> Luis Arvayo
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 8 '06 #3
Thank you. That gave me a good hint to what to do.

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> escribió
en el mensaje news:O5**************@TK2MSFTNGP10.phx.gbl...
Luis,

You should be able to use 24 bit icons if you are using Windows XP (I
believe it is an OS-dependent feature).

As for an easy way to solve this, create a class that derives from
Form, and set the icon in the constructor.

Then, have all of your classes derive from that new Form type that you
have defined, and it should work fine.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Luis Arvayo" <am**********@prodigy.net.mx> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
Hi,

- Is there a way to that every form in my app use the same icon withouth
adding it to the Icon property one form by one ?

- Do I must add to my app the icon(s) I will use in my forms as embedded
resource, then I must use the assembly.GetManifestResourceStream in order
to assign to my forms ? Is that the correct way ?

- Can I use 24 bit icons ?

Regards
Luis Arvayo


Mar 8 '06 #4
But the icon of that form will be seen anyway in the windows main toolbar

"Michael Nemtsev" <ne*****@msn.com> escribió en el mensaje
news:9c**************************@msnews.microsoft .com...
Hello Luis,

I found the idea to have icons for all forms not very good, cuz there are
dialogs that don't have icons at all (modals one).

LA> - Is there a way to that every form in my app use the same icon
LA> withouth adding it to the Icon property one form by one ?
LA> LA> - Do I must add to my app the icon(s) I will use in my forms as
LA> embedded resource, then I must use the
LA> assembly.GetManifestResourceStream in order to assign to my forms ?
LA> Is that the correct way ?
LA> LA> - Can I use 24 bit icons ?
LA> LA> Regards
LA> Luis Arvayo
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche

Mar 8 '06 #5
Hello Luis,

modal dialog boxed are not showed there, and *generally* have no icons.
But it's up to u whether create icons for all windows or not. I've seen a
lot of samples where dialog boxes were with icons

LA> But the icon of that form will be seen anyway in the windows main
LA> toolbar
LA>
LA> "Michael Nemtsev" <ne*****@msn.com> escribió en el mensaje
LA> news:9c**************************@msnews.microsoft .com...
LA>
Hello Luis,

I found the idea to have icons for all forms not very good, cuz there
are dialogs that don't have icons at all (modals one).

LA> - Is there a way to that every form in my app use the same icon
LA> withouth adding it to the Icon property one form by one ?
LA> LA> - Do I must add to my app the icon(s) I will use in my forms
as
LA> embedded resource, then I must use the
LA> assembly.GetManifestResourceStream in order to assign to my forms
?
LA> Is that the correct way ?
LA> LA> - Can I use 24 bit icons ?
LA> LA> Regards
LA> Luis Arvayo
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 9 '06 #6

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

Similar topics

8
by: Beatrice Rutger | last post by:
Hi, I am a previous Micro$oft desertee (moved from VB/VC++ to Java before this whole DOTNET thing) because I had several issues with Micro$oft. I am not completely in love with Windoze, but I...
4
by: Elhanan | last post by:
hi.. all a client of ours is considering to move from a dos application to windows desktop application. the application is for traveling agency, the database is rather large. their current...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
13
by: M.Siler | last post by:
Let me clarify from my last post. I am not using these 4 questions as the sole screening method. Currently in, the Tampa Bay area (Florida) there is an extreme shortage of C# developers. We have...
5
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an...
14
by: shamirza | last post by:
Question Do ActiveX DLLs made in VB still need the VB runtimes on the machine? ________________________________________ Answer In a word, Yes. Visual Basic does not support what is known...
10
by: Jules Winfield | last post by:
Guys, I've been designing applications for the financial services industry using MSFT technologies for many years (Win32 API, MFC, and now .NET WinForms). All applications are Internet-based,...
2
by: Eric B. | last post by:
1) Where the heck are the icons stored in VS? I know there are not a lot, but I used the "Insert Standard Items" command on the menubar and lo and behold, icons! 2) How do set a child/parent...
0
by: Derek Hart | last post by:
Am I allowed to copy the icons from Visual Studio, or Standard Office toolbars and use in my winforms apps? If so, how can I do that? Have not found code to use the FaceID property in dotnet, and...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.