📄 frmplay.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace VWMS
{
public partial class frmPlay : Form
{
public frmPlay()
{
InitializeComponent();
}
private void btnPlay_Click(object sender, EventArgs e)
{
ofDialog.Filter = "*.avi|*.avi";
ofDialog.Title = "选择视频文件";
ofDialog.InitialDirectory = Application.StartupPath.Substring(0, Application.StartupPath.LastIndexOf("\\")).Substring(0, Application.StartupPath.Substring(0, Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\")) + "\\Video\\";
if (ofDialog.ShowDialog() == DialogResult.OK)
{
this.axWindowsMediaPlayer1.URL = ofDialog.FileName;
}
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
private void frmPlay_Load(object sender, EventArgs e)
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -