B
Brian Simmons
Hi All,
I think I have a question that probably has an easy answer, but I can't
manage to find it.
I come from a Sybase PowerBuilder programming background, and pretty much
all PB developers used the following technique:
"Post"ing a method/event when opening a window, so that the window displays,
is drawn, an hourglass displays, and then run any code that may take a while
(i.e. a long query retrieval).
As opposed to, putting the retrieval (or whatever) code in the Open event,
which would show the user nothing, and give them the impression that
"nothing" was happening. Until the query is retrieved, then the window will
be displayed.
So, how does one accomplish this "technique" properly in C#/Winform/.NET2?
I've currently got a winform and in the Load event I'm calling a webservice.
This webservice can take awhile to return with the necessary data. Thus my
window isn't displayed until the WS returns data. I would rather the window
displays, shows an hourglass, then calls the web service, and the program
waits until it returns.
Any suggestions?
Thanks,
Brian
I think I have a question that probably has an easy answer, but I can't
manage to find it.
I come from a Sybase PowerBuilder programming background, and pretty much
all PB developers used the following technique:
"Post"ing a method/event when opening a window, so that the window displays,
is drawn, an hourglass displays, and then run any code that may take a while
(i.e. a long query retrieval).
As opposed to, putting the retrieval (or whatever) code in the Open event,
which would show the user nothing, and give them the impression that
"nothing" was happening. Until the query is retrieved, then the window will
be displayed.
So, how does one accomplish this "technique" properly in C#/Winform/.NET2?
I've currently got a winform and in the Load event I'm calling a webservice.
This webservice can take awhile to return with the necessary data. Thus my
window isn't displayed until the WS returns data. I would rather the window
displays, shows an hourglass, then calls the web service, and the program
waits until it returns.
Any suggestions?
Thanks,
Brian