TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sandeep Dange
NA
2
0
how to use thread with parametrized function
Apr 4 2010 11:09 PM
hii, i want to use thread with a parameterized function.
thread1 = New Thread(AddressOf mailTemplate)
mailTemplate has following definition:
Public Function mailTemplate(ByVal tomail As String, ByVal subjectmail As String, ByVal body As String)
when i wrote the above declaration code of thread, i'm getting following error :
Error 7 Overload resolution failed because no accessible 'New' can be called with these arguments:
'Public Sub New(start As System.Threading.ParameterizedThreadStart)': Method 'Public Function mailTemplate(tomail As String, subjectmail As String, body As String) As Object' does not have a signature compatible with delegate 'Delegate Sub ParameterizedThreadStart(obj As Object)'.
'Public Sub New(start As System.Threading.ThreadStart)': Method 'Public Function mailTemplate(tomail As String, subjectmail As String, body As String) As Object' does not have a signature compatible with delegate 'Delegate Sub ThreadStart()'. E:\Project\Management\Management\ApplicationScreen.vb 1293 35 Management
state the solution if u know,
Reply
Answers (
0
)
Multithread unable to get updated textbox value.
Getting output from Process