ActiveX outside of the form context

.NET Edition of the F-IN-BOX
iunknown
Posts: 2
Joined: Thu Sep 15, 2011 8:23 am

ActiveX outside of the form context

Postby iunknown » Thu Sep 15, 2011 8:27 am

Hi, the layer in our software is a business layer and has no access to a window or form. It also runs on separate threads (and should work from any thread) that are not STA.
:shock: I cannot make the ActiveX to start working in this manner, only when it resides within a form.
:idea: I've made a call to f_in_box__control1.CreateControl() directly after ActiveX object's constructor, but it still cannot work.
:?: What do you suggest?

iunknown
Posts: 2
Joined: Thu Sep 15, 2011 8:23 am

Postby iunknown » Thu Sep 15, 2011 12:27 pm

Ok,
I made it work by creating dedicated thread as STA,
custom ApplicationContext (to provide my own custom context) which in turn creates, initializes the f_in_box control and plays flash content, along with the Application.Run(context) method to get the message pump started.
Any thoughts on this?

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Sep 15, 2011 2:47 pm

Hello,

Yes, looks like a correct way. You needed a message cycle and you got it.

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 14 guests

cron