QUOTE(mishipal @ 22 Jun, 2009 - 03:38 AM)

I wanna open an existing form on a new thread so that one form does not wait for others, as it has to do a lot of work.
CODE
Dim thread As Threading.Thread
thread = New Threading.Thread(AddressOf Me.showform)
thread.Start()
CODE
[b]Form2.ShowDialog()[/b]
i get an activex errorok, i assume that Show Dialog is a login dialog?
Also, what else are you running on this Form2? ActiveX errors are either Webbased, which doesnt look like to me, or a mis-signed ActiveX control in a client/server application.
QUOTE(mishipal @ 22 Jun, 2009 - 03:38 AM)

System.InvalidOperationException was unhandled, Message="An error occurred creating the form. See Exception.InnerException for details. The error is: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment."
Source="Logitex"
StackTrace:
at Logitex.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
Lastly, looks like you havent managed the threads that are being created. Remember when you are multithreading that you need to create a callee and caller relationship. With this being said you need to handle the transmission of information through the threads from the server to the client-station and some handshaking, probably with a security key. As well, when this packet is received you need to have it assoicated with the server or it goes no where. Lastly, you need to create a handshake signature from the client-station to the server with basically same criteria.
QUOTE(mishipal @ 22 Jun, 2009 - 03:38 AM)

at Logitex.My.MyProject.MyForms.get_Home() at Logitex.Login.showform() in D:\Visual Studio 2005 Projects\Logitex\Logitex\Login.vb:line 81
As far as this error line, you may want to look at line 81 and see what is going on with that line and again, if this is a client/server application, then you may need to step back in the associated objects on that line. VB and C++/C# are notorious for not showing an error until it is way too late and therefore the problem is not on the line it states but instead the setup of the object used on that line.
This post has been edited by woodjom: 22 Jun, 2009 - 07:36 AM