Search results for query: *

  1. D

    Question Access main form from second thread running in a module

    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...
  2. D

    Question Access main form from second thread running in a module

    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...
  3. D

    Question Embedding one form into another form

    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.
  4. D

    Question Access main form from second thread running in a module

    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...
Back
Top