How to popup a form to indicate working

  • Thread starter Thread starter yxq
  • Start date Start date
Y

yxq

Hello,
I want to popup a form to indicate doing a long time work,
when this form shown, anyting on main form are disabled until the popup form
closed.

**************************
Dim a as new frmTip
a.Show
myWork()

The main form can be changed in the code above.

**************************
Dim a as new frmTip
a.ShowDialog 'Stop here
myWork()

The code will stop at "a.ShowDialog", the code below will not run.

How to do a popup form to indicate doing a work?

Thank you
 
yxq,

The code behind the form wich is shown as a dialog will still run.
If you place a timer then every x seconds you can do your indication of the
work.
 
Put your "long work" in a thread then show a progress type form as a dialog.
Check for the "work" progress in the dialog form then when it's done, return
to your main program.
 

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

Back
Top