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 Mask Edit and why it is used?
What is ado in vb.net?
How would you Create a Query Builder and Explain its uses
1.What are the Feactures visual data manager 2.Short note on visual data manager 3.What is data control,its work,properties,methods 4.Needs for OLEDB in vb 5.LIst steps involved in generating christal report 6.What is a recordset 7.Diffrence between RDO and ADO 8.What is an Activex control 9.Advantages of ADO over data control 10.Diffrence between model and modeless form 11.What is the significance of debug window 12.Diffrence between single document and multiple document 13.Explain data report
What are the Internet tools available in VB6.0?
OLE is used for _______
How do you create a form in visual basic?
Explain OLE Drag and Drop?
What are the important components of OLEDB?
How would you map properties to controls by using ActiveX Control Interface Wizard?
Explain OLE Drag and Drop.
How do I dial a phone number without using the MSCOMM VBX?
How do I remove/change the picture property of a control at design time?
Which method is preferred to save datas like database?
What are the properties of datacontrol?