本文介绍了工具栏中的Windows窗体用户控件自定义图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了usercontrol,我可以在工具栏中看到它,但是没有显示我自己的图标或位图图像用于usercontrol.我已经使用过[ToolboxBitmap(typeof(MyUserControl),"MyIcon.icon")],但仍显示默认图标.我还将图像的生成操作"设置为嵌入式资源.关于

解决方案



I have created usercontrol and i can see in toolbar but my own icon or bitmap image is not displaying for usercontrol. I have already used [ToolboxBitmap(typeof(MyUserControl), "MyIcon.icon")] but still default icon is displayed. I have also set Build Action of image to embedded resource. Regards

解决方案




这篇关于工具栏中的Windows窗体用户控件自定义图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 01:25