![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
progress bar and an updating label with a cancel button). The obvious solution is to put the call to the method doing the work in the Load event handler of the dialog, but this causes the work to start before the dialog has been displayed. |
#3
| |||
| |||
|
|
Reg Rat wrote: progress bar and an updating label with a cancel button). The obvious solution is to put the call to the method doing the work in the Load event handler of the dialog, but this causes the work to start before the dialog has been displayed. There are various events you can try: VisibleChanged, HandleCreated, Activated, I cannot remember the order they are called, but they are worth a try. Another option is the Paint event is called. If you use .NET 2.0 you can use the Shown event. Richard |
#4
| |||
| |||
|
|
It looks like the only option I have is to kick off a new thread in the Load handler which will do the work, but this seems a bit over the top for my purposes, particularly as this thread would need to call into the UI thread to update the dialog. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |