473,796 Members | 2,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Ani mate' to work with no success. Can someone give me some
pointers please?

Thanks,

Flashster
Nov 29 '05 #1
10 3604
"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.Ani mate' to work with no success.


What's 'statusbar1.Ani mate'? 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******** ********@TK2MSF TNGP12.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.Ani mate' to work with no success.


What's 'statusbar1.Ani mate'? 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******** ******@TK2MSFTN GP10.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******** ******@TK2MSFTN GP11.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.d e/group/microsoft.publi c.dotnet.langua ges.vb/msg/0941b58dbcff7a7 6>

--
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******** ********@TK2MSF TNGP10.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.d e/group/microsoft.publi c.dotnet.langua ges.vb/msg/0941b58dbcff7a7 6>

--
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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2583
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 above the task bar. Can't figure out why that happens - it looks very ugly... Any ideas ? Zeljko
2
1226
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 code I wanted to know what I need in way of graphics? Which type of file, size, color system and anything else I will need from the graphics designer? thanx
3
3445
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 load. When location.replace is called the animated GIFs in the first page stop animating. Is this standard behaviour? If so, is there an easy work around to prevent this?
14
2143
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. once i clic on online its icon changes to connecticon (assume its there) and whenever i click on offline, its icon changes to disconnection (assume this is also there). now the problem is i have kept one icon for connection (ie when its online -...
0
1836
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 under certain conditions, but the exe is still listed in the processes leading me to believe the app is still running. It fires up perfectly on boot, however if the user logs off, and then logs back in (not reboot), or if the system goes to...
3
1774
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 for a still picture. I created an animation and named it the same as the still picture then uploaded it to the server and overwrote the one in the images directory.
3
4666
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
1531
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
1264
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 well as form itself when opening the application. Here is the problem: When I open "help" dialog or any other form from my application, then the status bar appears to have the wrong icon and title. These "wrong" attributes seems to be my...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10467
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10244
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4130
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.