简体   繁体   English

如何从数据库获取项目到组合框和文本框

[英]How to get Items from Database to Combobox and textBox

I have a table from Sqlite: 我有一个来自Sqlite的表:

KHACHHANG(id,name,email,phone,address) . KHACHHANG(id,name,email,phone,address)

I want to create a windows form which show a combobox of KHACHHANG.name , when I choose a name in that list . 我想创建一个Windows窗体,当我在列表中选择一个名称时,该窗体显示KHACHHANG.name的组合框。 Another textboxes ( Email,Phone,Address ) will auto fill in :) Thanks so much . 另一个文本框(电子邮件,电话,地址)将自动填写:)非常感谢。

See if this page can get you started. 查看此页面是否可以帮助您入门。 There is an example at the bottom. 底部有一个示例。

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

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