可编辑的下拉列表 [英] Editable Dropdownlist

查看:53
本文介绍了可编辑的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

晚上好,
如果有人可以帮助和指导我.我需要创建一个下拉列表,以便用户可以从下拉列表中选择一个值或在其中键入值,如果他/她所需要的不是他们的值,那么我将使用C#并使用VS2008使Windows窗体应用.

THNX

Good evening,
If any one can help and guide me. I need to create a dropdownlist where in the user can select a value from the dropdownlist or type the value in, if the one he/she needs is not their, I am making windows form appliction in C# and using VS2008.

THNX

推荐答案

如果将DropDown设置为DropDownStyle属性,则此下拉列表是可编辑的,用户可以选择一个项目或在其中键入值.
您可以通过this->
获取用户键入的值 MessageBox.Show(comboBox1.Text);

我认为这将解决您的问题;)
If you set DropDown to the DropDownStyle property then this dropdown is editable, user cal select an item or type the value in it.
you can get the user typed value by this->
MessageBox.Show(comboBox1.Text);

I think this will solve your problem ;)


它被称为ComboBox.您会在工具箱中找到它.
It''s called a ComboBox. You''ll find it in your ToolBox.


这篇关于可编辑的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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