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

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 3555
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Zeljko | last post by:
Hi, I have a form with a tray icon. However, when I minimize the form, it stays visible - not in the task bar (I have showintaskbar property set to false), but in a form of a rectangle sitting...
2
by: מירי | last post by:
I would like to make a program that puts an icon into the desk tray and when relevant changes it to an animated icon (much like the internet connection icon). Before I start playing around with...
3
by: Al | last post by:
Hi all... I have created an aspx page that contains an animated GIF. I am using javascript and location.replace to redirect from this page to another aspx page which takes several seconds to...
14
by: Kishan Hathiwala | last post by:
Hi i have kept a statusbar in the form with panels = true. and total there 3 panels. whenever i click on the 3rd panel a menu appears showing online and offline and either is enable at a time....
0
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears...
3
by: Dave Kelly | last post by:
I am a complete idiot and when it comes to PHP code I'm even worse. Is there something special I need to do to get an animated gif to work inside some PHP code. I have substituted an animation...
3
by: Eran.Yasso | last post by:
Hi all, I have app that adds notifyicon to systemtray. I want to highlight the notifyicon. Can anyone help me with that or show me a link? TIA, eyasso
3
vdraceil
by: vdraceil | last post by:
Hello everyone... how do i set .gif cursors for a form??The cursor when loaded does not animate itself.. Is it possible to set .gif icon(animated icon) for a form??
1
by: Alex Shulman | last post by:
I develop a C# application with Visual Studio .NET 2008. I customize the icon and title for my application form in runtime and it works fine: I can see correct icon and title in the status bar as...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.