468,321 Members | 1,820 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

animated icon in status bar of form?

How do I put a custom animated icon on the status bar of a form? I have an
animated icon file called icon.ani, and I've tried getting
'statusbar1.Animate' to work with no success. Can someone give me some
pointers please?

Thanks,

Flashster
Nov 29 '05 #1
10 3278
"Flashster" <fl***********@hotmail.com> schrieb:
How do I put a custom animated icon on the status bar of a form? I have an
animated icon file called icon.ani, and I've tried getting
'statusbar1.Animate' to work with no success.


What's 'statusbar1.Animate'? The 'StatusBar' class doesn't have an
'Animate' method.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 29 '05 #2
Sorry you're right again. I got confused there.

So how do I go about adding an animated icon - it allows .ico files to be
placed in a panel but not.avi or .ani?

Do I override the drawing routing for the status panel?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uX****************@TK2MSFTNGP12.phx.gbl...
"Flashster" <fl***********@hotmail.com> schrieb:
How do I put a custom animated icon on the status bar of a form? I have
an animated icon file called icon.ani, and I've tried getting
'statusbar1.Animate' to work with no success.


What's 'statusbar1.Animate'? The 'StatusBar' class doesn't have an
'Animate' method.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 29 '05 #3
"Flashster" <fl***********@hotmail.com> schrieb:
So how do I go about adding an animated icon - it allows .ico files to be
placed in a panel but not.avi or .ani?


You could use a timer control to change the icon periodically.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 29 '05 #4
Why didn't I think of that. I'll give it a go.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...
"Flashster" <fl***********@hotmail.com> schrieb:
So how do I go about adding an animated icon - it allows .ico files to be
placed in a panel but not.avi or .ani?


You could use a timer control to change the icon periodically.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 29 '05 #5
"Flashster" <fl***********@hotmail.com> schrieb:
Why didn't I think of that. I'll give it a go.


If you have any further questions on this topic, feel free to post them
here.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #6
Thanks Herfried. The user the timer method was quite simple and worked a
treat - thank you.

I now need to change the colour of my status bar from the control color it
seems to default to. My form uses a custom color and so I need it to match.
How would I do this - would I override the 'ondraw' routine, then create
appropriate brushes?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uq**************@TK2MSFTNGP11.phx.gbl...
"Flashster" <fl***********@hotmail.com> schrieb:
Why didn't I think of that. I'll give it a go.


If you have any further questions on this topic, feel free to post them
here.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #7
"Flashster" <fl***********@hotmail.com> schrieb:
I now need to change the colour of my status bar from the control color it
seems to default to. My form uses a custom color and so I need it to
match. How would I do this - would I override the 'ondraw' routine, then
create appropriate brushes?


See:

<URL:http://groups.google.de/group/microsoft.public.dotnet.languages.vb/msg/0941b58dbcff7a76>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #8

Can I just clarify - you are talking about using a panel control (rather
than a status panel) here?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
"Flashster" <fl***********@hotmail.com> schrieb:
I now need to change the colour of my status bar from the control color
it seems to default to. My form uses a custom color and so I need it to
match. How would I do this - would I override the 'ondraw' routine, then
create appropriate brushes?


See:

<URL:http://groups.google.de/group/microsoft.public.dotnet.languages.vb/msg/0941b58dbcff7a76>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #9
"Flashster" <fl***********@hotmail.com> schrieb:
Can I just clarify - you are talking about using a panel control (rather
than a status panel) here?


No, the statusbar control can display status bar panels. However, I believe
that the method demonstrated in the referenced article cannot be used to
change the color of the complete control.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #10
Ah, so it won't help me then as I want to change the status bar to look like
the form (not just the panels).
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
"Flashster" <fl***********@hotmail.com> schrieb:
Can I just clarify - you are talking about using a panel control (rather
than a status panel) here?


No, the statusbar control can display status bar panels. However, I
believe that the method demonstrated in the referenced article cannot be
used to change the color of the complete control.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Zeljko | last post: by
14 posts views Thread by Kishan Hathiwala | last post: by
reply views Thread by kapcreations | last post: by
3 posts views Thread by Dave Kelly | last post: by
3 posts views Thread by Eran.Yasso | last post: by
1 post views Thread by howard w | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.