现在的位置: 首页 > 综合 > 正文

使用ImageConverter转换图标

2012年09月25日 ⁄ 综合 ⁄ 共 183字 ⁄ 字号 评论关闭

           //frmtitle是一个Label控件

           ImageConverter ic=new ImageConverter ();
            this.frmtitle.Image =(Image )ic.ConvertFrom (this.Icon ) ;
            this.frmtitle.Text = this.Text;

抱歉!评论已关闭.