470,588 Members | 2,159 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,588 developers. It's quick & easy.

Add image to statusbar panel from imagelist- is it possible?

In VB6, I can use:

StatusBar1.Panels(1).Picture = ImageList1.ListImages(1).Picture

I can't figger out how to do it in VB.Net 2003. I tried converting the
project to .Net and got:

StatusBar1.Panels(1).let_Picture(ImageList1.ListIm ages(1).Picture)

But that's using the VB6 statusbar & imagelist controls. It doesn't work in
VB.Net statusbar & imagelist controls. Can it be done?
--
|
+-- Thief_
|
Nov 21 '05 #1
1 7594
Hi,

Dim ico As Icon
Dim ptrIcon As IntPtr

ptrIcon = DirectCast(ImageList1.Images.Item(0), Bitmap).GetHicon
ico = Icon.FromHandle(ptrIcon)
StatusBarPanel1.Icon = ico

StatusBar1.ShowPanels = True

Ken
-------------------
"Thief_" <th****@hotmail.com> wrote in message
news:ex*************@TK2MSFTNGP09.phx.gbl...
In VB6, I can use:

StatusBar1.Panels(1).Picture = ImageList1.ListImages(1).Picture

I can't figger out how to do it in VB.Net 2003. I tried converting the
project to .Net and got:

StatusBar1.Panels(1).let_Picture(ImageList1.ListIm ages(1).Picture)

But that's using the VB6 statusbar & imagelist controls. It doesn't work in
VB.Net statusbar & imagelist controls. Can it be done?
--
|
+-- Thief_
|

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Job Lot | last post: by
1 post views Thread by Anthony Boudouvas | last post: by
10 posts views Thread by Nicolas | last post: by
7 posts views Thread by Geoff | last post: by
reply views Thread by Silvia | last post: by
6 posts views Thread by Anony | last post: by
5 posts views Thread by SeanT | last post: by
5 posts views Thread by Bob | last post: by
5 posts views Thread by Tony Clark | last post: by
2 posts views Thread by =?Utf-8?B?S2VuTg==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.