G
Guest
hey, I have a status bar, and a timer control, and a statc variable.
every 0.5 seconds, the timer sets the status bar text to the variable.
then I can just change the variable's value whenever I want, which will in
turn display in the status bar. it works great.
my problem is that when I do database calls, or use SMO to get all the
available SQL servers, or other processor intensive stuff, the status bar
locks up till its done.
is there some way to make the status bar change even whe nthe computer is
busy ? it seems really unresponsive otherwise.
I tried making a separate thread in the timer tick event to change the
status, but it ends up erroring out because of multiple threads accessing the
same control.
any advice is appreciated. thanks.
every 0.5 seconds, the timer sets the status bar text to the variable.
then I can just change the variable's value whenever I want, which will in
turn display in the status bar. it works great.
my problem is that when I do database calls, or use SMO to get all the
available SQL servers, or other processor intensive stuff, the status bar
locks up till its done.
is there some way to make the status bar change even whe nthe computer is
busy ? it seems really unresponsive otherwise.
I tried making a separate thread in the timer tick event to change the
status, but it ends up erroring out because of multiple threads accessing the
same control.
any advice is appreciated. thanks.