473,657 Members | 2,478 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 cc2BackstyleTra nsparent.
No matter what BackColor property is set to, in run time
the backcolor is always SystemColors.Co ntrol.
Jul 21 '05 #1
11 3753
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 cc2BackstyleTra nsparent 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 cc2BackstyleTra nsparent. 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\PDWiza rd directory. In VB6 setting BackStyle to
cc2BackstyleTra nsparent 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 cc2BackstyleTra nsparent. 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
cc2BackstyleOpa que 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 tocc2BackstyleOp aque 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

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

Similar topics

5
3445
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 I go onMouseOver on a button in a nav bar, I want that button to switch to a different image while at the same time another blank image changes as an animation to an associated image. When I go onMouseOut, the bar image reverts back to the...
6
2392
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 of the dependencies. I am designing an animation tool.
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 is always SystemColors.Control.
3
2081
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 would an experienced c# programmer do it another way? This part defines the screen and the graphics pad I'm drawing to: Graphics screen = CreateGraphics(); Graphics drawpadg = Graphics.FromImage(drawpad);
4
2786
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 standards based world is so far behind the Flash based stuff in some areas (animation and server push in particular)
2
5771
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 color sequentially to let the user know that processing is occurring. This 'animation' occurs via the form timer event. However, I'm having trouble getting the animation to occur for all types of processing events. It appears that I have to...
2
1835
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 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script...
8
5532
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 transparency), etc. Then I have a separate thread running that has a WHILE loop that looks like this: WHILE (TRUE) { /* update all structs (bitmap locations, etc) */ SleepEx(iSpeed, FALSE); InvalidateRect(hwnd, lpRect, TRUE); }
6
2978
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 application and saved into a Dictionary<string, List<Image>> The dictionary will have 5 items which is for 5 controls. then each control will have this images in the dictionary(I also assigned the timers):
0
8413
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8617
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7352
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.