显示用于自定义控件的自定义图标? [英] Displaying custom icon for custom control?

查看:81
本文介绍了显示用于自定义控件的自定义图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio中,当您创建自定义控件时,您会得到以下丑陋的紫色小齿轮,用于显示控件图标而不是自定义控件属性


In visual studio when you create a custom control you get this ugly little purple gear thing for an icon of your control instead of a custom control .

So how can I change the icon for my control?

解决方案

Use the ToolboxBitmap attribute on the class.

这篇关于显示用于自定义控件的自定义图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆