Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 417673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:36:12+00:00 2026-05-12T18:36:12+00:00

I have 2 timers in MVB 2008 Express, one to control the fading in

  • 0

I have 2 timers in MVB 2008 Express, one to control the fading in of a window and another to call a beep function every few seconds or so. The problem is that while the window is fading in, it pauses while the timer beeps. Any ideas? Threads maybe?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:36:13+00:00Added an answer on May 12, 2026 at 6:36 pm

    Without seeing your code, I have a feeling that this is indeed related to threads.

    It sounds like you have a Windows Application, with two Timer controls sited on a form. You probably have code within each timer’s Tick event to perform the relevant functionality, one to fade the form, the other to beep.

    What is happening here is that both of these functions defined in the Tick events are running in the same thread. This is the same thread that is used for your Windows Forms UI (user interface). You can see the same problem when trying to update some portion of your form (display) while attempting to execute a long running process – Usually all form updates “stop” or “hang” until that long running process is completed.

    To correct this problem, you’ll need to have one (if not both) of the code functions that are called when the Timer‘s fire their Tick events run in a separate thread.

    The easiest way to achieve this is via a BackgroundWorker component (or class). Alternatively, you can instantiate and use your own ThreadStart delegate (which is what the BackgroundWorker component does anyway!)

    Something like the following:

    Imports System.Threading
    
    Public Class Form1
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            Dim newThread As Thread
            newThread = New Thread(AddressOf DoWork)
            newThread.Start()
        End Sub
    
        Private Sub DoWork()
            // Long running process happens in here.
        End Sub
    End Class
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have setup two timers in my application which both repeats every a few
I have a System.Timers.Timer that increments a counter every 3 seconds. Another thread may
I have 2 timers. One of them is counting each time it ticks; while
I have three seperate timers that call a method in each of their _Tick.
This post is related to: POSIX TIMER- Have multiple timers I want to call
I have a function calls that start a bunch of timers and I want
I have started multiple Timers on the same screen. When an incoming call or
I have a System.Timers.Timer that updates my win form application components in every 5
I have a Class(call it 'Foo') that has a System.Timers.Timer(call it 'myTimer'). Foo wraps
I have this code : void Main() { System.Timers.Timer t = new System.Timers.Timer (1000);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.