using animation.ocx in .net

  • Thread starter Thread starter Eugene
  • Start date Start date
E

Eugene

Setting backcolor for the animation control does not take
effect.
The BackStyle property is set to cc2BackstyleTransparent.
No matter what BackColor property is set to, in run time
the backcolor is always SystemColors.Control.
 
Hi,

Thanks for your post. I did some test on my side, however, I am not able to
reproduce the problem on my side. I created a new Windows Forms application
in VS .NET 2003, inserted both Microsoft Animation Control 6.0(SP4) and 5.0
(SP2), change their BackColor, build and run, and the backcolor are what I
set previously.

To narrow down the problem, I recommend you create a new project to check
whether or not the problem still exists? If the problem only exists in a
specific project, you can also post your project so that we can check what
was going on.

I look forward to your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
No, it does not work.

I need to play avi file on top of white form but the movie
has red background.
In VB6 setting BackStyle cc2BackstyleTransparent and
BackColor to White whould force movie to ignore it's own
background and be transparent.
In vb.net the control apears white, but movie still has
it's own red background.
 
Hi,

Thanks for your response. After further research, I found the same result
with both VB6 and VB .NET applications that they display the movie's
backgroup with BackStyle cc2BackstyleTransparent. I am testing again
clock.avi under Windows' folder.

To narrow down the problem, I suggest you to create new VB6 and VB .NET
applications, add Animation control to check the clock.avi file.

Please let me know the result.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi,

I am using working.avi from ..\Microsoft Visual Studio\VB98
\Wizards\PDWizard directory. In VB6 setting BackStyle to
cc2BackstyleTransparent overwrites movie's background
color with controls backgrownd property value. In .net it
does not. Try working.avi and you will see..

Thanks,
Eugene
 
Hi Eugene,

I did not find the working.avi in my system, also I searched the VS6
installation Disc and it is not there either.

Could you please tell me whether you can reproduce the problem with
clock.avi under windows folder?

I am standing by for your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Tim,
Sory for the delay - i was on vacation.

clock.avi does not have any background and can not be uses
as an exsample. Working.avi is standart Windows's
animation displayed f.i. when copying files. If oyou can
not find above mentioned file I can email it to you.

Thanks,
Eugene
 
Hi Eugene,

The working.avi file does not exist on my side, could you please post it so
that I can check it on my side?

I look forward to your response.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Eugene,

I received a working.avi file from my colleague and reproduced the problem
on my side. Based on my experience, when a control's backstyle is set to
transparent, the color of the form or report behind the control is visible.
That is, .NET Windows Form treats animation control properly, while Visual
Basic 6.0 does not.

If you want to change the Backcolor of animation, you can set BackStyle to
cc2BackstyleOpaque and then Backcolor of animation will take effect.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Tim,

You are absolutely right - setting control's backstyle to
transparent makes container behind control visible. So, if
you set container's backcolor to white wouldn't you expect
transparent control to become white? That what happens in
VB6 and does not happens in VB.Net. That makes me think
that the behavior of annimation.ocx is incorrect
under .Net and is correct under VB6.

Thanks,
Eugene
 
Hi Eugene,

Based on my research, the background color of animation control (set to
cc2BackstyleTransparent) is alway displayed as the Form's DefaultBackColor
in .NET, while it's displayed as the BackColor you set to the animation
control in VB6.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top