Answer Posted / joby cheriyan
Multi threading is one method for using the maximum
resource allocated for an application by the OS.
For example try a VB6 code.
Add these Controls to a form List box and command button.
Private Sub Command1_Click()
For i = 1 To 100000
List1.AddItem i
Next i
End Sub
This code will hangs up your form.
Think that you have three list box and three command button
for adding into three list boxes same time. U won’t be even
able to click the button until one task completes. If you
try with DOEVENTS function also not a proper solution for
this problem. Now you will try to solve this issue with
multithread. In VB6 you need API for creating threads.
Actually VB6 has lot of crashes when we use multithread.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is the-use of property page Wizard in ActiveX Control?
How would you attach pictures in column headers of List View Control?
Maximum Control Names length?
Through which protocol OLEDB components are interfaced?
How would you add column headers in listview control?
what are the Parts of ODBC?
How many objects resides in ADO ?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
Can any one please suggest which institute is providing Advance Excel & VBA Macros in Excel training in Hyderabad.
In which areas the Error occurs?
what is the Difference between Tabletype and Snapshot?
How many File System Controls are there Explain?
What is DBSqlPassThrough?
How to use advanced data-bound controls.
What is ODBC Direct and Microsoft Jet Database Engine ?