Solved

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

Posted on 2011-03-03
7
764 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
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…

778 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