I found the answer and here it is:
Sub Moo()
Dim instance As New Too
instance.NewProperty = "hello"
Dim th As New Threading.Thread(AddressOf instance.Foo)
th.Start()
End Sub
Class Too
Private newPropertyValue As String
Public Property NewProperty() As String...
Thank you demausdauth.
I dont mind doing reasearch, i have been doing it for a month on this subject.
I managed to do it but i dont know if it's the best way.
Anyway i have another problem that i think is related to this thread.
I have the main form and a textbox on it.
In a separate class...
Hello,
If you want to trap a form into another form i belive it goes like this:
secondform.show
After the code to open the second form you also need to write the folowing:
secondform.MdiParent = me
Didnt test the code, hope it works for you.
I was a vb6 user, done a few projects only with forums help.
Now i am moving to vb.net(vb2010) and i have some trouble.
Lets say we have a form(form1), a module(mod1) and a textbox on the form1.
i want to start a Sub (DoWork) in the module but in a new thread.
Dim Thread1 As...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.