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 visual basic used for?
How to down load image properties.
Explain about Caturing Baseline.
How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation?
___ is the control used to call a windows application.
What is the need of tabindex property is label control.
Explain about the creation of EXE files with Visual Basic?
___ property used to add a menus at runtime.
What is the use of progress Bar Control?
What is executenonquery in vb net?
What are the tools available for Debuggiu in VB?
How do I get the Tab key to be treated like a normal character?
What is shortcut menu and explain "The ole control's shortcut menu".
What is instantiating?
Is the Access Engine and Visual Basic Pro good enough for database work?