简体   繁体   English

是否可以在C#winforms的复选框列表控件内添加文本框?

[英]Is it possible to add a textbox inside a checkboxlist control in C# winforms?

I have a checkboxlist control in my windows forms application that i am building using c#.I am using this checkboxlist to add or remove certain attributes from a product.The functionality i want is that when i click on any one of the checkboxes, i want a textbox to appear beside the checkbox so that I can enter the value of that attribute and save that value somehow. 我在使用c#构建的Windows窗体应用程序中有一个checkboxlist控件。我正在使用此checkboxlist从产品中添加或删除某些属性。我想要的功能是当我单击任一复选框时,我想要在复选框旁边显示一个文本框,以便我可以输入该属性的值并以某种方式保存该值。

Please Help. 请帮忙。

You will need to Create Custom control to do that. 您将需要创建“自定义”控件。 (Inherit the Control add custom functionality). (继承控件添加自定义功能)。 Or simply use WPF 或者只是使用WPF

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM