How to add elapsed event to timer in VB 2005
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: How to add elapsed event to timer in VB 2005

  1. #1
    Join Date
    Jun 2012
    Posts
    2

    Arrow How to add elapsed event to timer in VB 2005

    hi all

    I'm a starter in VB
    I just need to Know how to add elapsed event to timer in VB 2005
    The timer has only Tick event

    ( if that not in vb 2005 what version of vb that supports the elapsed event )

    Thanks all

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: How to add elapsed event to timer in VB 2005

    Tick and Elapsed are pretty much the same event .. just depends on if your using

    System.Windows.Forms.Timer

    or

    System.Timers.Timer

    ....
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Jun 2012
    Posts
    2

    Re: How to add elapsed event to timer in VB 2005

    Quote Originally Posted by GremlinSA View Post
    Tick and Elapsed are pretty much the same event .. just depends on if your using

    System.Windows.Forms.Timer

    or

    System.Timers.Timer

    ....
    ok thanks for reply but i have a code using elapsed event so is there a way in reference to add that event to the timer

  4. #4
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,844

    Re: How to add elapsed event to timer in VB 2005

    Simply put the code from the elapsed event into the tick event
    Always use [code][/code] tags when posting code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center