It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

How to create a new thread for OCX ?

Moderator: dafunkymunky

How to create a new thread for OCX ?

Postby nprajapati on Tue Jun 24, 2008 3:34 am

Hi Experts,

I am writing a VB.NET 2.0 application. The main form has an OCX control which connects to a remote server and displays video. The OCX control is written by third party and I do not have its source code.

Problem:
When I start my application, the OCX control connects to remote server and display video without any problem. But when the remote server is not available, the OCX control continuosly tries to connect to it and hogs up the application. I can not do anything else in the main form and ultimately have to close it.

What I DID:
I created a new thread which creates OCX control object and adds to the main form. I used delegates for the same. But it seems that OCX always runs in main thread context which does not solve my problem.

Is there any way that OCX of main form run in a new separate thread context ?

Thanks,
Naresh
nprajapati
 
Posts: 0
Joined: Tue Jun 24, 2008 3:32 am

Who is online

Users browsing this forum: No registered users and 2 guests