Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

how can i show *.swf file format on my windows form in C#.net window application ??

Posted on 2011-03-03
7
Medium Priority
?
773 Views
Last Modified: 2012-05-11
i want to know that how can i show *.swf file format on my windows form in C#.net window application ??
here i attach the demo.swf file ....

now how can attach above file on windows form ??



demo.swf
0
Comment
Question by:Parth48
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 

Author Comment

by:Parth48
ID: 35025780
and here i attach my simple windows form ....

now how can i display demo.swf file in  my windows form ??

can u tell me the procedure ??
03-03-2011-4-25-23-PM.jpg
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 35025812
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Parth48
ID: 35026068
hi carl_tawn: u r right ...

but it can't play , what can i do ??

please refer the below code ....
 //attach flash object to the windows form
            int length = Application.ExecutablePath.Length;
            string GetFlashPath = Application.ExecutablePath.Substring(0, length - 22).ToString() + "Flash\\" + "Six_Sigma_demo.swf";
            axShockwaveFlash1.StopPlay();
            axShockwaveFlash1.Movie = GetFlashPath;
            axShockwaveFlash1.Play();

Open in new window


is there any thing wrong in the above code ??
0
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 35026261
What path are you getting in "GetFlashPath"?
0
 

Author Comment

by:Parth48
ID: 35033843
in GetFlashPath i will get the file path , and i will check it is correct .......

now what can i do ??
0
 
LVL 15

Expert Comment

by:Russell_Venable
ID: 35035615
You need to add the swf as a internal resource and call it from there. It's a lot easier. Here is a link to a example as I do not want to type it out on here. http://stackoverflow.com/questions/90697/how-to-create-and-use-resources-in-net
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question