Form problem

  • Thread starter Thread starter FlyFish
  • Start date Start date
F

FlyFish

Hi,

I'd like to create small window, with progress bar in it and with cancel/OK
button.
Something like that:

+-----------------------------------+
| |
| |
| progress bar |
| cancel/OK button |
+-----------------------------------+

It should be developed as the winform class. I put my update loop after
InitializeComponent() statement.
After instancing the class in the main application class, I call
ShowDialog() method to show the form. Form is showed after all
calculation/updating is done.

I got this done by adding onActivation event to the form and calling
Activate() method after InitializeComponent() - it works, but I want to be
sure is that good/only way?

Flyfish
 
Thank you for quick reply...

And how to make closing window event to terminate the update process?
Simply closing the window doesn't seem to work...
 
Herfried,

I know it can be perfectly done by spawning a new thread and delegats/worker
method. But I just wondered if there is a way of doing such a simple thing
without that.

Flyfish
 
Back
Top