Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21271

Multi Tasking issue

$
0
0
Hello everyone once again :wave:
I am working on a project in which I need to do multiple task on multiple forms.
Let me try to explain it with a simple example.

My projects has 2 forms i.e. Form1 and Form2 respectively.

In Form1 i've coded:
Code:

Private Sub Form_Load()
Form2.Show
MsgBox "Click me to continue", vbCritical, "I am a bug"
End Sub

Code:

In Form2 i've coded in a timer:
Private Sub Timer1_Timer()
Me.Caption = TimeValue(Now)
End Sub

Now when I execute Form1.. Form2 appears and a message box(which I've coded).
The issue is Form2's Timer getting paused untill I click the OK button of the messagebox..

I want my application which can perform multiple task. like in the above example I want Form2's timer keep working even if message box is appearing or not...
In the project multiple forms ar doing multiple task.

I hope you are understanding..and would like to show me the way to do this..

Thanks!
Regards,

Viewing all articles
Browse latest Browse all 21271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>