Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 13th, 2008, 11:23 PM
Authorized User
 
Join Date: Mar 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default Animated icon on VB form

I am making the app in vb i want this app to run in systray.
And i am through with this requirement.
Now my next requirement is i want to show an animated icon in defined interval using timer for e.g after every 5 minutes.

Does anybody know what logic should i apply for this?

Thanks in Advance.


987654321
__________________
987654321
 
Old March 14th, 2008, 05:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Hi there, check out the timer control to do this, it will execute in any given interval.

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old March 14th, 2008, 09:56 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Gonzalo,

Once an app has loaded, and has put its representative icon into the system tray, can you just change that icon? I thought that was a resource compiled into the program...
 
Old March 14th, 2008, 10:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Well, no.. don't you see changes in the icons in the tray? could be a little tricky to do in vb6, but in .net is a piece of cake. Now I'm confused, are we talking about the same thing? change the icon on the notify area, where the system clock is?

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old March 14th, 2008, 01:11 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

That’s what I think of when I hear SysTray...
 
Old March 14th, 2008, 02:37 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

Then yes, you can. .net has a control called notifyicon that do the trick for you...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old March 15th, 2008, 02:05 AM
Authorized User
 
Join Date: Mar 2008
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

but guys i have already developed the application in vb .
Is it that difficult to imply the code. I mean to say

I tried using the Timer control to change the icon using the Imagelist control and then putting it in the loop.But it is changing the pictures after very long interval am i going wrong in setting the interval.

As per BrianWren Suggestion,
I did'nt get this statement,
"change the icon on the notify area, where the system clock is?"
exactly where?
Because i am using this APis but i am still not that thourough with this function related to putting the app in systray so i find it little risky to take this step.

I need little justification on this statement.

Thanks in Advance.



987654321
 
Old March 16th, 2008, 12:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

What interval did you use?

what api are you using to put the icon on the system tray?



HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Display icon and form caption vickyj Beginning VB 6 1 January 31st, 2006 05:55 AM
User Form: How to get rid of icon "X" Axxess Excel VBA 2 September 26th, 2005 05:34 AM
play animated gifs on an access form dartcoach Access 6 June 17th, 2005 04:39 PM
how to set icon for VB project pritz VB How-To 1 April 19th, 2005 06:29 AM
VBExclamamation Icon on my own form? Plowking Beginning VB 6 1 October 30th, 2003 10:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.