By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,955 Members | 1,768 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,955 IT Pros & Developers. It's quick & easy.

Timer Control

P: n/a
Neo
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
Mar 20 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

"Neo" <Ne*@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
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

Mar 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.