This is a discussion on How to implement threading in VB.Net? within the VB.NET Programming forums, part of the Software Development category; Hi , Any one can explain in brief how can we implement threading in VB.Net with sample?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi , Any one can explain in brief how can we implement threading in VB.Net with sample?
__________________ cheers Aman |
|
#2
| |||
| |||
| Ya sure... Here is the sample.... Code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim pthread1 As New Thread(AddressOf Thread1) Dim pthread2 As New Thread(AddressOf Thread2) pthread1.Start() pthread2.Start() End Sub Public Sub Thread1() Dim pintcount As Integer Dim pstr As String pstr = “This is first thread” Do Until pintcount > 5 lstThreadDisplay.Items.Add(pstr) pintcount = pintcount + 1 Loop End Sub Public Sub Thread2() Dim pintcount As Integer Dim pstr As String pstr = “This is second thread” Do Until pintcount > 5 lstThreadDisplay.Items.Add(pstr) pintcount = pintcount + 1 Loop End Sub Learn with my post...................... ![]()
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
|
#3
| |||
| |||
| ya... I got it buddy..thnx ![]()
__________________ cheers Aman |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multi threading | gkumar | HTML, CSS and Javascript Coding Techniques | 0 | 07-19-2009 08:06 PM |
| Threading in VB.Net Tips | S.Vinothkumar | VB.NET Programming | 16 | 10-30-2007 07:55 AM |
| Threading in C# .Net 2005 : | a.deeban | C# Programming | 53 | 09-10-2007 07:27 AM |
| When working with shared data in threading how do you implement synchronization in a | oxygen | ASP and ASP.NET Programming | 1 | 07-26-2007 04:07 AM |
| what is the threading model used for ASP.Net? | mobilegeek | ASP and ASP.NET Programming | 1 | 07-21-2007 01:48 AM |
Our Partners |