F-IN-BOX .NET Edition 3.1 is ready

.NET Edition of the F-IN-BOX
Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

F-IN-BOX .NET Edition 3.1 is ready

Postby Softanics » Mon Jan 14, 2008 7:29 pm

Last edited by Softanics on Fri Nov 21, 2008 6:55 pm, edited 1 time in total.
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 » Thu Jan 24, 2008 6:35 pm

Have you removed or changed the event: OnLoadExternalResourceByFullPath
Because now I get an error in my design view and it seems this event is gone.
Am I missing something?

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

Postby Softanics » Thu Jan 24, 2008 6:44 pm

Roomie wrote:Have you removed or changed the event: OnLoadExternalResourceByFullPath
Because now I get an error in my design view and it seems this event is gone.
Am I missing something?


It still exists. For example, sample \samples\C#\Sample01_SWF_And_FLV_Player\ uses it. Try to build this sample. I've just tried and it works well.
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 » Fri Jan 25, 2008 5:49 am

Well, building my project works for me too but it's in the design view where it doesn't work. Right now there's OnLoadExternalResourceByRelativePath, but no OnLoadExternalResourceByFullPath, in the properties event listing.

This is the error I get in the Design View:

Events cannot be set on the object passed to the event binding service because a site associated with the object could not be located.

at System.ComponentModel.Design.EventBindingService.EventPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAttachEventStatement(IDesignerSerializationManager manager, CodeAttachEventStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)


Tried the old version (3.0) and it didn't work there either.

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

Postby Softanics » Fri Jan 25, 2008 7:01 am

Roomie wrote:Well, building my project works for me too but it's in the design view where it doesn't work. Right now there's OnLoadExternalResourceByRelativePath, but no OnLoadExternalResourceByFullPath, in the properties event listing.


Yes. Because OnLoadExternalResourceByFullPath is an event of AxCode, not f_in_box__control / f_in_box__form.

Look at \samples\C#\Sample01_SWF_And_FLV_Player\form1.cs:

Code: Select all

   class ContentProvider
   {
      private String Path;
      private f_in_box__lib.AxCode AxCode;
      private f_in_box__lib.AxCode.OnLoadExternalResourceByFullPathEventHandler Handler;

      public ContentProvider(f_in_box__lib.AxCode AxCode, String Path)
      {
         this.Path = Path;
         this.AxCode = AxCode;

         Handler = new f_in_box__lib.AxCode.OnLoadExternalResourceByFullPathEventHandler(OnLoadExternalResourceByFullPath);

         AxCode.OnLoadExternalResourceByFullPath += Handler;
      }

      private void OnLoadExternalResourceByFullPath(object sender, String URL, System.IO.Stream Stream, ref bool Handled)
      {
         if (URL == "http://FLV/FlashVideo.flv")
         {
            System.IO.Stream FromStream = System.IO.File.OpenRead(Path);

            FromStreamToStreamWriter writer =
               new FromStreamToStreamWriter(
                  FromStream,
                  Stream
               );

            Handled = true;

            AxCode.OnLoadExternalResourceByFullPath -= Handler;
         }
      }
   }


Roomie wrote:Tried the old version (3.0) and it didn't work there either.


I can't remember, in which version OnLoadExternalResourceByFullPath was an event of f_in_box__control / f_in_box__form. It was (it is) an AxCode event in each release.
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 » Fri Jan 25, 2008 1:03 pm

OK, got it, my bad. But the problem still exist, any pointers?
Not sure what I'm missing here.
Any help appreciated.

BTW, not sure this is helpfull but this is the line that the error refers to:

Code: Select all

this.FlashControl.AxCode.OnLoadExternalResourceByFullPath += new f_in_box__lib.AxCode.OnLoadExternalResourceByFullPathEventHandler(OnLoadExternalResourceByFullPath);

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

Postby Softanics » Fri Jan 25, 2008 4:50 pm

Roomie wrote:OK, got it, my bad. But the problem still exist, any pointers?
Not sure what I'm missing here.
Any help appreciated.

BTW, not sure this is helpfull but this is the line that the error refers to:

Code: Select all

this.FlashControl.AxCode.OnLoadExternalResourceByFullPath += new f_in_box__lib.AxCode.OnLoadExternalResourceByFullPathEventHandler(OnLoadExternalResourceByFullPath);


But what's the difference between this code and the appropriate code from the sample #1...

Could you please send me the project to test to support (at) f-in-box.com ? It would be great.
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 18 guests

cron