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
How would you navigate between one document to another document
How can Visual Basic be used for server-side scripting?
Are there any examples of commercial applications built using Visual Basic?
Why doesn't "my string" & Chr$(13) do what I want?
Draw Sequence Modal of RDO and Explain?
Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.
How to load and unload child forms.
Why can't I use an index with my VB accessed database?
What is rdo in vb?
What is ActiveX Dll and ActiveX Exe?
Differentiate between DAO,ADO and Adodc as in data access objects?
___,_____ and ____ container objects.
Explain what is Visual basic?
What is OLEDB?
What is the difference between c++ and visual basic?