471,066 Members | 1,617 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 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 1343
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by lwhitb1 | last post: by
12 posts views Thread by Mark Rae | last post: by
2 posts views Thread by OpticTygre | last post: by
2 posts views Thread by Amjad | last post: by
reply views Thread by S Wheeler | last post: by
1 post views Thread by John | last post: by

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.