Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


MultiThreading in Visual Basic.NET

This topic is 5647 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am mainly a c++ programmer but my new job is mandating that I use Visual Basic.NET for their latest project. Currently, everything seems very easy to use and quick for GUI development compared to the raw win32 c++ code I am used to. I am trying to figure out how to multithread in VB.Net (I have only been using VB.net for 2 days) as I need to have the user interface be responsive while processing large binary files. Any help from someone who has already tackled this problem or knows how to handle this in VB would be appreciated. I am currently reading one of the walkthroughs on multithreading for VB that come with .NET but always perfer advice from those with experience. Thanks in advance.

Share this post

Link to post
Share on other sites
ThreadPool class :-) Issue a work ticket. That simple. There are examples for this (as well as starting your own thread) in every beginner section I have seen so far.


Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)

Share this post

Link to post
Share on other sites
Also, the Thread and ThreadStart classes make multi-threading in .NET a breeze.

Just create a ThreadStart instance using a method that returns void and takes no arguments.

something like this:

Dim oThreadStart as ThreadStart
Dim oThread as Thread
Set oThreadStart = New ThreadStart(Class.MyFunction)
Set oThread = New Thread(oThreadStart)

Not entirely sure if that''s the appropriate syntax, but that''s roughly the equivalent of how it''s done in C#

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!