在C#Form中  怎样把一张非矩形图片(圆形三角形之类)作成按钮? 矩形的按钮太死板了
希望高手赐教!
最好能给出详细代码

解决方案 »

  1.   

    控制Button的Region 属性System.Drawing.Drawing2D.GraphicsPath path = new System.Drawing.Drawing2D.GraphicsPath(); 
    path.AddEllipse(this.button1.ClientRectangle); 
    this.button1.Region = new Region(path);
      

  2.   

    Region的方法不太好用
    ImabeButton怎么用呢??
      

  3.   

    設置ImabeButton的ImageUrl屬性,就可以顯示任意圖片了。
      

  4.   

    我用的是Studio.net2003
    好像没有ImageButton的控件啊
      

  5.   

    ImageButton是Web里的http://www.codeproject.com/KB/miscctrl/TabHeader.aspx
      

  6.   

    我是在windows应用程序里做的Form
    不是在ASP.net里
    应该怎么办啊?
      

  7.   

    不是给你链接了么
    自己看看CodeProject上的那篇文章
    他是继承PictrueBox
    自己做的ImageButton