将图标或jpg分配给dll [英] assign an icon or jpg to a dll

查看:66
本文介绍了将图标或jpg分配给dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的朋友们,我创建了一个dll,该dll继承了文本框控件,我的dll位于工具箱中,我可以将其拖动到我的窗体"中,该dll就像齿轮一样.ok??????
我如何为该dll分配图片或图标??????
我希望该dll不喜欢齿轮,例如硬盘上的图标文件或jpg文件,该如何解决??????????????

它们称为工具箱位图",定义控件时,您需要做的就是适当地设置属性. MSDN具有以下信息和示例:如何:为控件提供工具箱位图 [ ^ ]


hi My friends , i created a dll , this dll inherited textbox control , My dll is in the toolbox , and i can drag it to My form , this dll like a gear .ok??????
how can i assign a pic or an icon to this dll??????
i want this dll does not like a gear , for example like an icon File in my hard disk , or like a jpg file ,whats the solution?????????????

解决方案

They are called ToolBox Bitmaps, and all you have to do is set the attribute appropriately when you define the control. MSDN has the information and samples: How to: Provide a Toolbox Bitmap for a Control[^]


这篇关于将图标或jpg分配给dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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