Timer Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have a SQL query that takes about 1.5 minutes to run after the click of a
button. I also have a timer on the form that works perfectly indepentently.
But once I combine them, them timer won't receive its event until the sql
query is completed, which makes it totally useless. Is there a way that I can
program around this. Do I have to make a multi threading environment??
Thanks
 
Yes, you have to use a separate thread to run the query. The method call is
blocking the form execution.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
 
Back
Top