Solved

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

Posted on 2011-03-03
7
762 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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.
This video discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now