?? 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 + -