11 2011 档案

摘要:在TabControl控件中并没提供单个选项卡的Click事件,今天下午翻了翻MSDN 结果还是没找到相关的文档:( 看来只有自个儿折腾了...还好有个SelectedIndexChanged事件为我所用:) 以下是代码片段:privatevoidtabControl1_SelectedIndexChanged(objectsender,System.EventArgse) { switch(this.tabControl1.SelectedIndex) { case0: MessageBox.Show("tabPage1isSelected"); break; case1 阅读全文
posted @ 2011-11-07 22:32 过错 阅读(24320) 评论(0) 推荐(0) 编辑
摘要:Bitmap myBitmap = new Bitmap(Image.FromFile(filePath ), 32, 32); IntPtr Hicon = myBitmap.GetHicon(); Icon newIcon = Icon.FromHandle(Hicon); FileStream outStream = new FileStream(@"d:/a.ico", FileMode.OpenOrCreate); newIcon.Save(outStream); outStream.Flush(); outStream.Close();http://www.cn 阅读全文
posted @ 2011-11-06 22:38 过错 阅读(1460) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示