Solved

is it possible to have multi-threading in vb

Posted on 2002-06-28
6
202 Views
Last Modified: 2010-05-02
Is it possible to have multi threading in VB
can u plz suggest an example....

Regards
0
Comment
Question by:Amitabh
6 Comments
 
LVL 22

Expert Comment

by:CJ_S
ID: 7115932
VB itself has no multithreading. However you can use the Win32 API's to create a new thread and use it. I do not recommend using it though.

Look for CreateThread

Public Declare Function CreateThread Lib "kernel32" Alias "CreateThread" (lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal dwStackSize As Long, lpStartAddress As Long, lpParameter As Any, ByVal dwCreationFlags As Long, lpThreadId As Long) As Long


CJ
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 7115934
0
 
LVL 2

Accepted Solution

by:
Ber earned 100 total points
ID: 7116005
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 69

Expert Comment

by:Éric Moreau
ID: 7116023
VB.Net is supporting multi threading natively.
0
 

Author Comment

by:Amitabh
ID: 7158701
thanks and sorry for having taken lot of time. i was held up with some office work.

regards,
A.Pandey
0
 
LVL 2

Expert Comment

by:Ber
ID: 7160682
Cheers...
Ber...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now