/*==========================
调用flash
实现窗体内某控件的全屏显示
Esc退出全屏
==========================*/
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 WindowsFormsFLASHFull
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//Rectangle rect = new Rectangle();
string path = System.Windows.Forms.Application.StartupPath + "\\Flash\\" + "sf" + ".swf";
private void Form1_Load(object sender, EventArgs e)
{
KeyPreview = true;//优先获得键盘事件的激活权
axShockwaveFlash1.Movie = path;
axShockwaveFlash1.Play();
//实现窗体内某控件的全屏显示
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
Rectan
串口通讯系列四-调用flash
最新推荐文章于 2025-04-17 11:36:48 发布