Setting AxCode for a f_in_box__form

.NET Edition of the F-IN-BOX
Roomie
Posts: 22
Joined: Wed Dec 19, 2007 6:05 am

Setting AxCode for a f_in_box__form

Postby Roomie » Mon Apr 21, 2008 7:26 am

Hi Artem, another little question from me:

I have an f_in_box__form form in my application and everything works fine. But now I want to use an embedded Flash.ocx for that form.

Could you please give me an example on how you set this.

In the help it only shows an example for how to do it for an f_in_box__control. I followed that for an f_in_box__control that I have in my application and that worked perfectly.

Thanks in advance

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

Re: Setting AxCode for a f_in_box__form

Postby Softanics » Mon Apr 21, 2008 8:05 am

Thank you for your question.

Roomie wrote:Hi Artem, another little question from me:

I have an f_in_box__form form in my application and everything works fine. But now I want to use an embedded Flash.ocx for that form.


Write in constructor of your form:

Code: Select all

public MyTranslucencyForm() : base(AxCode code)


when you create the form:

Code: Select all

f_in_box__lib.AxCode code = new f_in_box__lib.AxCode(StreamWithFlasshOCX)

MyTranslucencyForm FlashPlayerForm = new MyTranslucencyForm(code);


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

Roomie
Posts: 22
Joined: Wed Dec 19, 2007 6:05 am

Postby Roomie » Mon Apr 21, 2008 9:01 am

You example doesn't work for me.
My code looks like this:

Form Constructor:

Code: Select all

public FormIntro() : base(AxCode code)


Creating my form:

Code: Select all

System.IO.Stream StreamWithFlashOCXCode = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Pausit.Flash9d.ocx");
f_in_box__lib.AxCode code = new f_in_box__lib.AxCode(StreamWithFlashOCXCode);

FormIntro oFormIntro = new FormIntro(code);


It seems I'm doing something wrong in the constructor. Can you see what wrong?

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

Postby Softanics » Mon Apr 21, 2008 10:27 am

Roomie wrote:System.IO.Stream StreamWithFlashOCXCode = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Pausit.Flash9d.ocx");


Check StreamWithFlashOCXCode value, is it not null ?
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 15 guests

cron