473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

using animation.ocx in .net

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.
Jul 21 '05 #1
11 3721
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.

Jul 21 '05 #2
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.
-----Original Message-----
Hi,

Thanks for your post. I did some test on my side, however, I am not able toreproduce the problem on my side. I created a new Windows Forms applicationin 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 Iset previously.

To narrow down the problem, I recommend you create a new project to checkwhether or not the problem still exists? If the problem only exists in aspecific project, you can also post your project so that we can check whatwas 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.
.

Jul 21 '05 #3
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.

Jul 21 '05 #4
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
-----Original Message-----
Hi,

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

To narrow down the problem, I suggest you to create new VB6 and VB .NETapplications, 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.
.

Jul 21 '05 #5
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.

Jul 21 '05 #6
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
-----Original Message-----
Hi Eugene,

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

Could you please tell me whether you can reproduce the problem withclock.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.
.

Jul 21 '05 #7
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.

Jul 21 '05 #8
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.

Jul 21 '05 #9
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

-----Original Message-----
Hi Eugene,

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

If you want to change the Backcolor of animation, you can set BackStyle tocc2BackstyleOpaque 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.
.

Jul 21 '05 #10
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.

Jul 21 '05 #11
Thank you,
Eugene
-----Original Message-----
Hi Eugene,

Based on my research, the background color of animation control (set tocc2BackstyleTransparent) is alway displayed as the Form's DefaultBackColorin .NET, while it's displayed as the BackColor you set to the animationcontrol 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.
.

Jul 21 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Brian Angliss | last post by:
I'm relatively new to scripting in JavaScript, so I'm not too surprised I'm having difficulty scripting up an animation effect for my personal site. What I'm trying to do is the following: When...
6
by: Darren | last post by:
X-No-Archive Hi all, Can anyone help me with structuring the data in a small tool I have to build? I'm trying to work out if there's a design pattern or data structure that would remove some...
13
by: Eugene | last post by:
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...
3
by: James | last post by:
Hello, I'm new to c# and have created an animation which draws directly to the window, it uses the code below which all works. I would like to know if this is the 'correct' way to do it - or...
4
by: petermichaux | last post by:
Hi, Is there any way to make DOM scripted animation smoother? Flash is far superior in this area. Any one here know what makes Flash so smooth by comparison? I don't like the fact that the...
2
by: rdemyan via AccessMonster.com | last post by:
My application has a lot of complicated SQL statements, calculations, processing that takes time. I've created a custom form to act like a messagebox. It has 10 small rectangles on it that change...
2
by: jasonchan | last post by:
I am trying to have a function start with a timer and then switch to another function. However, it is not working at all. Anyone know whats goin on? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
8
by: DelphiCoder | last post by:
As part of familiarizing myself with the Win32 API, I wrote a simple animation program in C. The program has a struct for each bitmap, holding information such as its location, visibility, mask (for...
6
by: dantz | last post by:
HI everyone, I hope someone can help me on this. I have form application that has 3 Timers that does an animation (changing an image for every interval) Each image are loaded at start of...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.