Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



VB .NET WinForm How to Pass a Paramter to a Thread


Home  > VB.NET  > VB .NET WinForm How to Pass a Paramter to a Thread 
       
Easiest way is to declare it as a global public variable


You Could Use the name and pass values to thread and retrive the value 
using

oThread.Name = strFilter
System.Threading.Thread.CurrentThread.Name

Eg. 


    Public Sub PopulateTree(Optional ByVal strFilter As String = "")
        oThread = New System.Threading.Thread(AddressOf PopulateTreeThread)
        oThread.Name = strFilter
        oThread.Start()
    End Sub


    Public Sub PopulateTreeThread()
        PopulateTree(0, tvPost.TopNode, System.Threading.Thread.CurrentThread.Name)
    End Sub


if you know something better send a mail to 
ASP / VB .NET Get The State Of the Current Thread and check if its running

Configuration Manager Not found in IDE of Visual Studio .NET 2005

Debug Problem WebService Visual Studio 2005 The breakpoint will not be hit No symbol has been loaded for this document

index

Invoke or BeginInvoke cannot be called on a control until the window handle has been created.

VB .NET Delay The TextChanged Event of a TextBox using Timer Control

VB .NET How to Create XML Files with fields Dynamically

VB .NET Timer Control delay or Interval in milliseconds

VB .NET TreeNode Display Image or icon in a TreeView Control

VB .NET WinForm How to Pass a Paramter to a Thread

VB .NET Winform Make a TreeNode Invisible or Hide a TreeNode in a TreeView Control

VB .NET Sort a combobox xml datasource

.net temporarily disable an event handler

showwindow fullscreen windows 7

.net double click show full window

.net hide windows 7 start menu

.net winform statusstrip separator

Implement Keyboard Shortcut in Windows

dynamic call a function

dynamically call a functino in .net

.NET Display a form



  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam