Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Timer object for custom class?


Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2003, 07:40 AM
natrajv's Avatar
natrajv natrajv is offline
Centurion
 
Join Date: Sep 2003
Posts: 163
Default Timer object for custom class?


Hi

Adding timer object in Form container is not a problem, but
how to add timer object in custom class?
Reply With Quote
  #2  
Old 12-28-2003, 09:42 AM
HiTmAN's Avatar
HiTmAN HiTmAN is offline
Contributor
 
Join Date: Mar 2003
Location: The FSB
Posts: 570
Default

Look into the SetTimer and KillTimer APIs.
__________________
MSDN is your friend.

3L Designs
Reply With Quote
  #3  
Old 12-28-2003, 09:56 AM
reboot's Avatar
reboot reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,612
Default

Amazing what you can find in our Code Library OnErr0r's Timer Class
Reply With Quote
  #4  
Old 12-29-2003, 06:06 AM
natrajv's Avatar
natrajv natrajv is offline
Centurion
 
Join Date: Sep 2003
Posts: 163
Default

Quote:
Originally Posted by reboot
Amazing what you can find in our Code Library OnErr0r's Timer Class



Thanks HitMan and reboot...
Reply With Quote
  #5  
Old 01-16-2004, 05:36 AM
natrajv's Avatar
natrajv natrajv is offline
Centurion
 
Join Date: Sep 2003
Posts: 163
Default

Quote:
Originally Posted by natrajv
Quote:
Originally Posted by reboot
Amazing what you can find in our Code Library OnErr0r's Timer Class



Thanks HitMan and reboot...



Unfortunately, this timer is not working for my project. I am initiating my project using many custom class objects. But, this timer function is expecting window handle to return timer events. Because of this, I am unable to use this really good function in my project.

Is there any way to add timer objects, in pure custom class. (Just imagine a project where you dont have any forms, so passing window handle is ruled out)

Is there any solution to this problem?
Reply With Quote
  #6  
Old 01-16-2004, 07:21 AM
Squirm's Avatar
Squirm Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

You may find multimedia timers useful. Click here for the full story:
http://www.xtremevbtalk.com/show...threadid=96917
__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Class Module ARG01 General 7 06-19-2009 04:49 PM
Writing entire objects to a file? MoNoXBooGIE General 14 04-20-2004 07:21 PM
File System Object (Code for the masses) Aquila General 2 07-25-2003 10:10 AM
How can I initialise a Timer object (not Timer Control) mikey General 6 03-26-2003 09:29 AM
calling timer? Xenocide General 4 05-30-2002 08:38 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->