为usercontrol创建dll [英] create dll for usercontrol

查看:100
本文介绍了为usercontrol创建dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我需要创建一个dll和usercontrol .....

在usercontrol中有文本框当我进入文本框时相应的文本框应该改变背景颜色,forecolor和字体为Bold .... ..

hi I need to create a dll and usercontrol.....
In usercontrol having textbox when i enter into the textbox corresponding textbox should change backcolor,forecolor and font as Bold......

推荐答案

在Visual Studio中创建一个新项目 - 但选择类库,而不是Windows窗体应用程序或WPF应用程序。



此项目类型可用于创建.dll文件。



当您拥有项目时,添加一个新项目UserControl类型的项目。然后,您可以通过向其添加文本框并为文本框编写所需的任何代码来自定义用户控件。



完成后,您将成为能够在.dll文件中找到你的控件。
Create a new project in Visual Studio - but choose "Class Library", not "Windows Forms Application" or "WPF Application".

This project type can be used to create a .dll file.

When you have your project, add a new item of type "UserControl" to it. You'll then be able to customize your usercontrol by adding a textbox to it and writing whatever code you want for the textbox.

When you have finished, you will be able to find your control inside the .dll file.


Ok ...



下载此文件www.dice.web44.net/ExampleWithTextbox.zip [ ^ ]



是的,这是我的一个实验性网站。



这可能是我应该给你的所有帮助,因为这是一个快速的答案部分,而不是免费学习编程课程...你的问题现在似乎显示缺乏非常基本知识:-(



祝你好运!
Ok...

Download this file www.dice.web44.net/ExampleWithTextbox.zip[^]

Yes it's one of my experimental websites.

That's probably all the help I should give you, because this is a quick answers section, not a free learn to program course... your question now seems to reveal a lack of very basic knowledge :-(

Good luck!


这篇关于为usercontrol创建dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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