使用ListView模仿Windows系统的资源管理器界面,实现文件(夹)的浏览.重命名.删除及查询等功能,主要功能界面展示如下: 1.MainForm.cs及MainForm.Designer.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System
C# Winform 中如何实现音乐播放和视频播放 namespace WindowsFormsApplication1 { public partial class Form2 : Form { public Form2() { InitializeComponent(); SoundPlayer sp = new SoundPlayer("C:/Users/xingping.xu/Documents/Visual Studio 2010/Projects/ConsoleApplicatio
winform的ComboBox中只能赋值text,显示和值是一样的,很多时候不能满足根本需要,熟悉B/S开发的coder最常用的就是text和value分开的,而且web下DropDownList本来就是分为text和value.ComboBox要实现同样功能,使item有多个值,只能用重写一个类来实现了. 重写类如下: using System; namespace sm { class cListItem { private string id = string.Empty; public