資源簡介
代碼精簡,有注釋 源代碼說明清晰
用Microsoft Visual Studio 2008 制作的

代碼片段和文件信息
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?WindowsFormsApplication2
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?sdfToolStripMenuItem_Click(object?sender?EventArgs?e)
????????{
????????????Close();
????????}
????????private?void?toolStripButton1_Click(object?sender?EventArgs?e)
????????{
????????????string?strfilename;
????????????OpenFileDialog?dlg?=?new?OpenFileDialog();
????????????dlg.title?=?“?打開“;//對話框的標題
????????????dlg.ShowReadOnly?=?true;//打開方式
????????????dlg.Filter?=?“視頻文件All?Files?(*.*)|*.*|?(*.mp4;*.rmvb)|*.mp4;*.rmvb“;//篩選打開的類型
????????????dlg.ValidateNames?=?true;//檢查文件有效性???默認為true
????????????dlg.ShowHelp?=?true;//在對話框中顯示幫助按鈕
????????????dlg.Multiselect?=?true;//用戶可以選擇多個文件
????????????if?(dlg.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????this.listBox1.Items.AddRange(dlg.FileNames);//向列表框中添加播放列表
???????????????
????????????????????strfilename?=?dlg.FileName;
????????????????????axWindowsMediaPlayer1.URL?=?strfilename;
????????????}
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(this.splitContainer1?.Panel2Collapsed?==?false)
????????????{
????????????????this.splitContainer1?.Panel2Collapsed?=?true;
????????????????this.button1?.Text?=?“顯示列表“;
????????????}
????????????else
????????????{
????????????????this.splitContainer1?.Panel2Collapsed?=?false;
????????????????this.button1?.Text?=?“隱藏列表“;
????????????}
????????????//this.button1.Visible?=false?;
???????????
????????}
????????private?void?listbox1_DoubleClick(object?sender?EventArgs?e)
????????{
????????????if?(this.listBox1?.Items.Count?>?0)
????????????{
????????????????this.axWindowsMediaPlayer1?.URL?=?this.listBox1.SelectedItem.ToString();
????????????????
????????????}
????????}
????????private?void?h和大法官ToolStripMenuItem_Click(object?sender?EventArgs?e)
????????{
????????}
????????private?void?toolStrip1_ItemClicked(object?sender?ToolStripItemClickedEventArgs?e)
????????{
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????this.skinEngine1.SkinFile?=?“DiamondGreen.ssk“;
????????????this.Opacity?=1;
????????}
????????//?鼠標樣式
????????private?void?toolStripMenuItem2_Click(object?sender?EventArgs?e)
????????{
????????????this.Cursor?=?new?Cursor(Application.StartupPath?+?@“\mico\a1.ico“);
????????}
????????private?void?toolStripMenuItem3_Click(object?sender?EventArgs?e)
????????{
????????????this.Cursor?=?new?Cursor(Application.StartupPath?+?@“\mico\as.ico“);
????????}
????????//窗體透明
????????private?void?asToolStripMenuItem_Click(object?sender?EventArgs?e)
????????{
????????????this.Opacity?=?1;
?????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2238??2010-04-21?21:54??c#播放器\WindowsFormsApplication2\aa.ico
?????文件??????61440??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\bin\Debug\AxInterop.WMPLib.dll
?????文件???????5032??2007-12-22?09:44??c#播放器\WindowsFormsApplication2\bin\Debug\DeepCyan.ssk
?????文件??????16669??2006-03-22?12:26??c#播放器\WindowsFormsApplication2\bin\Debug\DiamondGreen.ssk
?????文件?????339968??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\bin\Debug\Interop.WMPLib.dll
?????文件?????516096??2006-08-18?11:50??c#播放器\WindowsFormsApplication2\bin\Debug\IrisSkin2.dll
?????文件???????2238??2005-04-27?16:14??c#播放器\WindowsFormsApplication2\bin\Debug\mico\a1.ico
?????文件???????3262??2005-04-27?16:14??c#播放器\WindowsFormsApplication2\bin\Debug\mico\a12.ico
?????文件???????2238??2005-04-27?16:14??c#播放器\WindowsFormsApplication2\bin\Debug\mico\aa.ico
?????文件???????3262??2005-04-27?16:14??c#播放器\WindowsFormsApplication2\bin\Debug\mico\as.ico
?????文件??????12477??2006-03-23?14:11??c#播放器\WindowsFormsApplication2\bin\Debug\Midsummer.ssk
?????文件??????22528??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe
?????文件??????32256??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb
?????文件??????14328??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe
?????文件???????3964??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\Form1.cs
?????文件??????16257??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\Form1.Designer.cs
?????文件??????10767??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\Form1.resx
?????文件??????61440??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\obj\Debug\AxInterop.WMPLib.dll
?????文件?????339968??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\obj\Debug\Interop.WMPLib.dll
?????文件???????5120??2010-04-22?16:00??c#播放器\WindowsFormsApplication2\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件???????1867??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.csproj.FileListAbsolute.txt
?????文件????????928??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.csproj.GenerateResource.Cache
?????文件????????544??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.csproj.ResolveComReference.cache
?????文件??????22528??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.exe
?????文件???????3369??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.Form1.resources
?????文件??????32256??2010-04-22?16:26??c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.pdb
?????文件???????1323??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\obj\Debug\WindowsFormsApplication2.Properties.Resources.resources
?????文件??????61440??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\obj\Release\AxInterop.WMPLib.dll
?????文件??????????0??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\obj\Release\build.force
?????文件?????339968??2010-04-22?16:19??c#播放器\WindowsFormsApplication2\obj\Release\Interop.WMPLib.dll
............此處省略32個文件信息
- 上一篇:大圖找小圖 C#圖片對比高速找圖源碼
- 下一篇:C#版24點撲克游戲源代碼
評論
共有 條評論