參考COM - Shockwave Flash

在工具箱按滑鼠右鍵選[選擇項目] COM元件 Shockwave Flash Object
然後再將元件拉到表單上


using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Linq; 
using System.Text; 
using System.Windows.Forms; 
 
namespace WindowsFormsApplication1 
   public partial class Form1 : Form 
   { 
       public Form1() 
       { 
           InitializeComponent(); 
       } 
 
       private void Form1_Load(object sender, EventArgs e) 
       { 
           axShockwaveFlash1.Playing = true; 
           axShockwaveFlash1.LoadMovie(0, "c:\\test.swf"); 
           axShockwaveFlash1.Play(); 
       } 
   } 


文章標籤
全站熱搜
創作者介紹
創作者 黃彥霖 的頭像
黃彥霖

彥霖 實驗筆記

黃彥霖 發表在 痞客邦 留言(0) 人氣(1,688)