English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

can we create threads in visual basic ? i need to run to processes that listen to two diff COM ports and i need to send information in between these two processes ...
please help me ...

presently i am implementing it using timers anyother way possible please help...

2007-03-20 08:41:06 · 3 answers · asked by fresh 2 in Computers & Internet Programming & Design

3 answers

Check out this topic "Multithreading in Visual Basic" over on MSDN:

http://msdn2.microsoft.com/en-us/library/eed6swsx(vs.71).aspx

2007-03-21 12:27:55 · answer #1 · answered by Anonymous · 0 0

Which version of visual basic? If it's using the .net framework 2.0 (vs 2005) then you can just use a background worker if it is .net framework 1 or 1.1 then you can use the following code.


Dim Thread as Threading.Thread
Thread = New Threading.Thread(AddressOf [ThreadHandler])
Thread.Name = "Alerts Thread"
Thread.Start()

where [ThreadHander] is the sub where the code you want to run is. be careful of synchlocks

2007-03-28 00:06:27 · answer #2 · answered by marketplacesoftware 4 · 0 0

prgramming languages http://www.programmersheaven.com/Free Programming Compilers and Interpreters http://www.freebyte.com/programming/
Source code http://www.programmersheaven.com/

Free Software files http://en.wikipedia.org/wiki/Category:Free_software

2007-03-28 07:25:35 · answer #3 · answered by Raki 2 · 0 0

fedest.com, questions and answers