WinForm-ListBox控件美化

    若是要对ListBox控件进行自定义绘制(美化),那么首先必须将ListBox的 DrawMode属性设置为OwnerDrawVariable或OwnerDrawFixed。ListBox有个 ItemHeight属性,在DrawMode设置为Normal时,这个属性是不可设置的,而且其值是根据当前字体进行计算得到的。只有当DrawMode设置为OwnerDrawVariable或Owne
相关文章
相关标签/搜索