參考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();
}
}
}
全站熱搜
留言列表