Issue with inherited Transparent Form

.NET Edition of the F-IN-BOX
seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Issue with inherited Transparent Form

Postby seesharp » Thu Oct 18, 2007 10:26 am

Hi I am having an issue when inheriting from f_in_box__form.

The issue seems easily reproducable:

If I create a class like:

Code: Select all

TransparentForm:f_in_box__form


and I set the FlashMovie within that class, e.g:

Code: Select all


public partial class TransparentForm : f_in_box__form
{
        public TransparentForm()
        {
            InitializeComponent();
            this.FlashProperty_Movie = "D:\\ColorMatrix.swf";
        }
 }



I can assign properties like WindowState, ShowInTaskbar etc. without any problem in any instance of that class. However, that's not very interesting as I like to have instances with various movies.

As soon as I set the FlashProperty_Movie in an instance of that class, WindowState and ShowInTaskbar seem totally broken or ignored.

e.g.

Code: Select all


TransparentForm f = new TransparentForm();
f.WindowState = FormWindowState.Maximized;
f.ShowInTaskbar = false;
f.FlashProperty_Movie = "D:\\ColorMatrix.swf";
f.Show();



This will show the correct movie but not maximized and shown in taskbar.

Sincerely

Alex[/code]

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

Postby Softanics » Thu Oct 18, 2007 1:27 pm

Thank you.

As a workaround, I suggest to call ShowInTaskbar, WindowState and others after loading movie.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

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

Postby Softanics » Thu Oct 18, 2007 1:30 pm

It seems the problem with Show(). If I call Show() immediately after createing a form, it works as expected:

Code: Select all

TransparentForm f = new TransparentForm();
f.Show();
f.WindowState = FormWindowState.Maximized;
f.ShowInTaskbar = false;
f.FlashProperty_Movie = "D:\\ColorMatrix.swf";
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Thu Oct 18, 2007 1:45 pm

Thanks for your reply,

indeed this does the job for the moment. I hesitate to implement it as permanent fix. If this issue will be resolved in the nearer future, I will just advise our customers how to work-around the problem.

Regards

Alex

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Thu Oct 18, 2007 2:05 pm

Hmm..

unfortunately we cannot change the sequence of these calls as we create the whole code dynamically and show the form from Application.Run ...


Alex


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 15 guests

cron