473,396 Members | 1,895 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.

Changing icons at runtime

Hi

I want to use a lot of icons in panels in a status bar. The icons shall show
the current status of operations and has to be changed programmatically.

Is it possible to store the icons in the application in the same way as you
store images in an image list? I prefer not get the icons from files.

Odd Anders
Dec 4 '05 #1
1 1517
"O.A.Haugum" <St**************@online.no> schrieb

I want to use a lot of icons in panels in a status bar. The icons
shall show the current status of operations and has to be changed
programmatically.

Is it possible to store the icons in the application in the same way
as you store images in an image list? I prefer not get the icons
from files.


An Imagelist can not store Icons. Therefore you can not directly assign the
icons from an imagelist to the Icon property of a StatusbarPanel without
conversion.

You can store the icons as resources in the assembly and load them at
runtime:
http://msdn.microsoft.com/library/en...gResources.asp
Armin

Dec 5 '05 #2

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

Similar topics

3
by: lwhitb1 | last post by:
I created my own icons, and I would like to be able to use them instead of all the default icons they provide. Is this possible? -- lee
12
by: Mark Rae | last post by:
Hi group, Apologies if this is the wrong group, but I thought I'd start here first... A client has asked me how to change the icon immediately to the left of the text in the browser address...
3
by: Al | last post by:
Hi All, I am trying to get a 24x24 "Windows XP" icon to display correctly on a button in my toolbar. My icon has 8 layers (16x16, 16x16, 24x24, 24x24, 32x32, 32x32, 48x48, 48x48) with each size...
2
by: OpticTygre | last post by:
Hi folks. I'm currently in the midst of building an explorer - like viewer for a bigger project I'm going to be working on soon. When building the class for my Treeview and Listview controls, I'm...
2
by: Amjad | last post by:
Hi, I'm using the NotifyIcon to process some text files in the background periodically. I want to display one icon in the task bar when the program is in stand by mode, and I want to display...
3
by: QLD_AU | last post by:
Is their a way in a VB.Net application to set all sub form icons to the main form ? or even set all icons to the Application icon, without having to reference the icon as a filename ? With...
0
by: S Wheeler | last post by:
I have a winform app written in managed vc++. The app has a status bar with a couple of icons that need to be changed at runtime; also, I want to embed a progress bar in one of the panes. The icons...
2
by: SharpCoderMP | last post by:
i'm trying to embed multiple program icons in my executable. the only way so far i managed to do that is to embed native win32 resource file with multiple icons. it works, but... when i create a...
1
by: John | last post by:
Is there such a thing as storing icons or bitmaps into a resource file, and adding more icons or bitmaps into the resource file at runtime? I want to store a bunch of icons into a resource file,...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.