473,385 Members | 1,863 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,385 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 3568
"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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.