Page 1 of 1

Issue with inherited Transparent Form

Posted: Thu Oct 18, 2007 10:26 am
by seesharp
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]

Posted: Thu Oct 18, 2007 1:27 pm
by Softanics
Thank you.

As a workaround, I suggest to call ShowInTaskbar, WindowState and others after loading movie.

Posted: Thu Oct 18, 2007 1:30 pm
by Softanics
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";

Posted: Thu Oct 18, 2007 1:45 pm
by seesharp
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

Posted: Thu Oct 18, 2007 2:05 pm
by seesharp
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