当前位置: 代码迷 >> .NET组件控件 >> 有关问题:VS2005中创建Winform控件
  详细解决方案

有关问题:VS2005中创建Winform控件

热度:3929   发布时间:2013-02-25 00:00:00.0
问题:VS2005中创建Winform控件
自己画的一个下拉控件
`
怎么对右下角的小按钮做单击的事件?有谁有代码让我借鉴下啊``?

------解决方案--------------------------------------------------------

------解决方案--------------------------------------------------------
public event EventHandler DrapDown = null;


然后在你的MouseDown里面(有效位置):
if (DrawDown != null)
DrawDown(this, new EventArgs());


这样外界如果有处理DrapDown,就会引发。
  相关解决方案