Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to run swf file from c#?

How to run swf file from c#?

Scheduled Pinned Locked Moved C#
csharptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Supra2
    wrote on last edited by
    #1

    I want to run swf file from C# windows application. I am able to run .wav file but not .swf file. Thanks

    D K 2 Replies Last reply
    0
    • S Supra2

      I want to run swf file from C# windows application. I am able to run .wav file but not .swf file. Thanks

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      .swf isn't supported by windows media player and the .net media player classes share a common core with it. I believe there's a flash playing COM object that gets installed with flash player automatically. You'll have to add a reference to it in your project and use it to play the file.

      Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

      1 Reply Last reply
      0
      • S Supra2

        I want to run swf file from C# windows application. I am able to run .wav file but not .swf file. Thanks

        K Offline
        K Offline
        krishna_goluguri
        wrote on last edited by
        #3

        1.right click on toolbox at general select add new items 2.one popup is appeared with add references title select COM tab 3.select shock wave object 4.click on ok 5.u will find shock wave object on toolbox at general tab 6.now drag and drop ur flash object to windows form then add below code string path = System.Environment.CurrentDirectory; path += @"\Top_1.swf"; axShockwaveFlash1.LoadMovie(0, path); axShockwaveFlash1.Play(); Have a nice day

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups