From: tc on
Hi all.

I have an application that requires input from a 3rd party application. The
3rd party software sends data to any control on the running application on
the main thread.

I can start my application through a startup module which forces the main
form on the main thread, how do I then open a second form and put it on the
main thread?

I've tried Dim'ing a thread then thread.start, but I get invoke errors which
I have to say I don't not understand!

Basically the second form I'm running contains a text box which must be on
the main thread to handle the incoming data.

Any help very much appreciated.
Cheers.


From: Leo on
tc used his keyboard to write :
> Hi all.
>
> I have an application that requires input from a 3rd party application. The
> 3rd party software sends data to any control on the running application on
> the main thread.
>
> I can start my application through a startup module which forces the main
> form on the main thread, how do I then open a second form and put it on the
> main thread?
>
> I've tried Dim'ing a thread then thread.start, but I get invoke errors which
> I have to say I don't not understand!
>
> Basically the second form I'm running contains a text box which must be on
> the main thread to handle the incoming data.
>
> Any help very much appreciated.
> Cheers.

If you are using Fred which by the sounds of it you are, then this is
the wrong group.

--
ClassicVB Users Regroup! comp.lang.basic.visual.misc
Free usenet access at http://www.eternal-september.org


From: MikeD on


"Leo" <ttdhead(a)gmail.com> wrote in message
news:i1s9aq$vta$1(a)news.eternal-september.org...
> tc used his keyboard to write :
>> Hi all.
>>
>> I have an application that requires input from a 3rd party application.
>> The 3rd party software sends data to any control on the running
>> application on the main thread.
>>
>> I can start my application through a startup module which forces the main
>> form on the main thread, how do I then open a second form and put it on
>> the main thread?
>>
>> I've tried Dim'ing a thread then thread.start, but I get invoke errors
>> which I have to say I don't not understand!
>>
>> Basically the second form I'm running contains a text box which must be
>> on the main thread to handle the incoming data.
>>
>> Any help very much appreciated.
>> Cheers.
>
> If you are using Fred which by the sounds of it you are, then this is the
> wrong group.

He may very well not know what "Fred" is. Best to refer to it as VB.NET.

--
Mike