2017-07-10 44 views

回答

1

这不是很好解释吗?你把这些代码:

public sealed class MyListBox:CheckedListBox 
{ 
    public MyListBox() 
    { 
     ItemHeight = 30; 
    } 
    public override int ItemHeight { get; set; } 
} 

进入一个new class file和你的设计师使用它(您可能需要清理&重建您的解决方案):

Toolbox

然后具有所需保证金:

margin

+0

已经通过面板解决了它,但仍然thx的答案 – Nikolas