Author: yanku | Posted on: 6/12/2008 3:30:17 AM | Views : 405

Hi All,

I have created a hastable and in that i am storing thread object and Thread id as 'key' and 'value'.

now i want to retreive the thread object from the hashtable as value by passing the 'key' to hashtable.


below is my code:

Shared objthread As New Hashtable

Public Sub startLoadThread()

    objLoadThread.Start()
    objthread.Add(objLoadThread.ManagedThreadId, objLoadThread)

End Sub


can i do like below:

objthread.item( objLoadThread.ManagedThreadId )


what is the way to retrieve that ?


Thanks in advance

-yan
...

Go to the complete details ...