摘要: privatevoidlistView1_Click(objectsender,EventArgse) { if(this.listView1.SelectedItems.Count<=0)//这这判断是否点了空白区,点了空白区进到if里 MessageBox.Show("请选中items"); } 阅读全文
posted @ 2010-02-09 11:47 努力实现目标 阅读(2546) 评论(0) 推荐(1) 编辑
摘要: public class Utils{ public static int GetStringLength(string str) {//计算字符串字节长度 return Encoding.Default.GetBytes(str).Length; } /* public static string Trim(string str) { if (str.Substring(0, 1) == " "... 阅读全文
posted @ 2010-02-09 11:40 努力实现目标 阅读(1743) 评论(0) 推荐(0) 编辑