Solved

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

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

Expert Comment

by:Asim Nazir
ID: 35025829
0
Independent Software Vendors: 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

749 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