V
Vlad Simionescu
Hello
I'm trying to let my Windows Form application perform a lengthy
operation while displaying a progress bar in a modal dialog window;
the dialog has a cancel button. The dialog is displayed in the main
thread while the work is done in a background thread. I managed to do
it except for one minor problem: I want the cursor to be hourglass
when it is over the main window and be normal (arrow) when it is over
the dialog box. I cannot do it. Setting the Cursor property of the
main window to Cursors.WaitCursor (before displaying the dialog) won't
help, though I expected it would, and I know of nothing else I could
do. I searched Google thoroughly (as much as I could) and to my
surprise couldn't find any answer.
(Instead, I can make the cursor hourglass on the dialog window, by
setting its Cursor property, but it's not at all how it should
behave.)
Please help me if anybody knows what is to be done. I suppose it's
either a simple call I don't know or a problem with .NET / C# (I'm
writing in C#, I forgot to mention).
V. Simionescu
I'm trying to let my Windows Form application perform a lengthy
operation while displaying a progress bar in a modal dialog window;
the dialog has a cancel button. The dialog is displayed in the main
thread while the work is done in a background thread. I managed to do
it except for one minor problem: I want the cursor to be hourglass
when it is over the main window and be normal (arrow) when it is over
the dialog box. I cannot do it. Setting the Cursor property of the
main window to Cursors.WaitCursor (before displaying the dialog) won't
help, though I expected it would, and I know of nothing else I could
do. I searched Google thoroughly (as much as I could) and to my
surprise couldn't find any answer.
(Instead, I can make the cursor hourglass on the dialog window, by
setting its Cursor property, but it's not at all how it should
behave.)
Please help me if anybody knows what is to be done. I suppose it's
either a simple call I don't know or a problem with .NET / C# (I'm
writing in C#, I forgot to mention).
V. Simionescu