Controls created on one thread cannot be parented to a control on a different thread


  • Hi,
             We were getting this error and i was trying out  a solution from Microsoft, but the BeginInvoke method doesnt get generated by the compiler when i use a namespace.Given below is the sample code i was trying

    Imports System.Threading

    Namespace org.test

    Public Class Form1

    Dim testing As New MethodInvoker(AddressOf test)

    Public Sub testing2()


    End Sub

    Public Sub test()


    End Sub

    End Class

    End Namespace

    Am i missing something as the Me.begininvoke is not recognized at all. How do i overcome this problem? I am a newbie so probably iam missing something very much basic


    Friday, May 05, 2006 12:51 PM

All replies