Multitasking.

Hi,

I have a mdiform and several windows form.
I have a form that doing process with certain criteria entered by user, and also having progress bar.
I want the user to be able to open another form from menu and the processing form is still kept running.

Please help how to do it.

Thank you.
LVL 1
emi_sastraAsked:
Who is Participating?
 
Jonez176Connect With a Mentor Commented:
If what you're talking about is the procedure that you would like to perform in the background, it would be put in the DoWork event.

Example:
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
 
    'Do work here
 
End Sub

Open in new window

0
 
Jonez176Commented:
You would like the BackgroundWorker class.  It is available in the Toolbox and all you have to do is drag it onto your GUI.  Here is a nice tutorial on how to implement it:
http://www.java2s.com/Code/VB/GUI/BackgroundWorkerDemo.htm
Good luck!
0
 
emi_sastraAuthor Commented:
Hi,

Where to put the process function/procedure?

Thank you.
0
 
emi_sastraAuthor Commented:
Hi,

Ok. I will try it.
Thank you very much for your help.
0
All Courses

From novice to tech pro — start learning today.