Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Does anyone know how to instantiate/initialize an active x control in a windows forms app in code. In particular the ax web browser control.

 

It works fine just dropping it onto the form, but I want to create it from scratch in a seperate thread to the UI, I can create it and it appears on the form however when I call its navigate method I get this

 

Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was unhandled

 

Thanks

Posted

Is there a better option?

 

I thought earlier about having 7 web services which all create an indidivual instance of the browser, perform the manipulation and then return the result.

 

Then in my forms app I could simply call the individual web services on different threads.

 

Would that work okay do you think?

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...