![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
WinForm(C#)
文章平均质量分 52
Osiris_Syou
没有什么不可以
展开
-
[.Net]实现可排序的BindingList
由于原生的BindingList并未提供排序功能,当DataGridView的数据源设为BindingList时,DataGridView的排序功能将不起使用。以下是实现排序功能的SortableBindingList,需要用到拓展方法,通过构建表达式树去进行动态排序。原创 2024-07-03 17:02:45 · 80 阅读 · 0 评论 -
C#一个数组的实现
using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace ConsoleApplication1{ public class CStringList { /// /// 数组增值数原创 2012-04-29 22:19:48 · 1416 阅读 · 0 评论 -
user32.dll中的所有函数
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace WindowsAPI { class CSharp_Win3转载 2012-04-30 12:28:42 · 773 阅读 · 0 评论 -
一个伪泛型List的实现
// 从一个数组的实现衍生出来的,说是伪泛型,是因为比较的时候是用ToString来比较的,所以只对极少部分的类型有用,真要用到的话,最好限制一下T的范围using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace ConsoleApplication1原创 2012-04-29 22:34:03 · 696 阅读 · 0 评论 -
从MSDN总结过来的PropertyGrid中ExpandableObjectConverter的应用
public partial class Form1 : Form { public Form1() { InitializeComponent(); AppSettings p = new AppSettings(); this.propertyGrid1.SelectedObject原创 2012-05-15 15:28:07 · 3346 阅读 · 0 评论 -
简单实现SplitContainer分隔线中的按钮被按下时将左边Panel折叠
using System;using System;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;namespace My.Controls{ public class SplitPanel : SplitContainer { #region ■宣原创 2012-05-17 15:01:28 · 6647 阅读 · 0 评论 -
简单实现PropertyGrid编辑Dictionary功能
本Dictionary的Key和Value都是枚举类型,本例并没实现添加和删除功能,只有编辑功能。(1)自制弹出窗体四个控件,ListBox:lBox,ComboBox:cBox,Button:btnOk,还有个Label。using System;using System.Collections.Generic;using System.ComponentModel;using原创 2012-05-16 10:02:17 · 4042 阅读 · 1 评论