PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Animation control and Modal dialogs

Reply

Animation control and Modal dialogs

 
Thread Tools Rate Thread
Old 28-07-2003, 09:12 PM   #1
TJoker .NET
Guest
 
Posts: n/a
Default Animation control and Modal dialogs


Hi all.
I'm trying a pretty simple thing: show a modal dialog with an animation (AVI
file) playing on it.
- First problem, I couldn't find any native .net windows form control to do
that (at least not part of the original framework)
Question: Is there anything simialr in the .net toolbox?

- Fine, then I decided to use the good old activeX control "Microsoft
Animation Control". I put it in my toolbox then dragged to my form.
I wrote the following code:
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
With AxAnimation1
.Open("C:\myfolder\myAnimation.avi")
.Play()
End With
End Sub

If I show the form modeless, it works perfectly. But if I show it modally,
then the animation does not show up.
Questions:
* Do I have to do something extra?
* Is this a known bug/limitation ?
* Can I fix/hack it ?

For now I made my form TopMost=True and disabled all the other forms but
this is less than ideal for me because it shown in front of all the other
applications windows as well. I need it to be the foremost form solely in my
application.

Thanks a lot.

TJ!


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off