Form problem

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
 
F

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...
 
F

FlyFish

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top