Solved

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

Posted on 2011-03-03
7
767 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
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 500 total points
ID: 35025812
0
 
LVL 10

Expert Comment

by:Asim Nazir
ID: 35025829
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 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