473,503 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3731
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
3434
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
2381
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
398
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
2068
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
2765
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
5757
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
1813
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
5516
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
2961
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
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.