代码改变世界

C#仿QQ皮肤-Label与ListBox 控件实现----寻求滚动条的解决方案

2010-11-08 16:22  苏飞  阅读(4847)  评论(21编辑  收藏  举报

阅读全文:http://www.sufeinet.com/thread-2110-1-1.html

 

       

大家还是先来看看效果吧


 

这次之所以一次写两个控件,其实主要是因为Label控件实在是太简单了没有必要放放一个文章里写,所以就一次性来了。

Label控件我就不再多说了,我直接把代码贴一下吧因为就几行代码,相信大家一眼就能看明白了。

 

代码
using System;
using System.Collections.Generic;

using System.Text;

namespace CRD.WinUI.Misc
{
  
public  class Label:System.Windows.Forms.Label
    {
      
public Label()
          : 
base()
      {
          
this.BackColor = System.Drawing.Color.Transparent;
      }
    }
}

 

 

ListBox实现


阅读全文:http://www.sufeinet.com/thread-2110-1-1.html