如何在 Windows 窗体中创建自动建议文本框? [英] How to create autosuggest textbox in windows forms?

查看:26
本文介绍了如何在 Windows 窗体中创建自动建议文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我是桌面应用程序开发的新手.我想知道如何使用数据库中的数据和所选数据在文本框中实现自动建议功能,我想获取所选数据的 id

Hello i am new to the desktop application development. i want to know how to implement the autosuggest feature in a textbox using data from the databases and on the data selected i want to get the id of the selected data

我熟悉web开发,我们使用隐藏字段来保存id,windows窗体中有没有类似的东西?

i am familiar with the web development and we use hidden field to save the id is there anything like that in windows forms?

我知道 autocompletesource 方法,但我们无法获取所选数据的 id,有没有其他方法可以做到这一点?请帮忙!!

I know autocompletesource method but we cant get the id of the selected data in that is there any other way to do this? please help!!

推荐答案

检查这个:在 Windows 应用程序中使用 C# 创建 winforms AutoComplete TextBox

这篇关于如何在 Windows 窗体中创建自动建议文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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