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
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace Common { /// <summary> /// TextBox控件操作类 /// </summary> public class CtlTextBoxOperate { private TextBox m_textBox = nul