我想根据两个组合框选择在文本框中显示SQL服务器的一些内容 [英] I want to display some contents from SQL server in textbox as per the two combo box selection

查看:66
本文介绍了我想根据两个组合框选择在文本框中显示SQL服务器的一些内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的需要帮助,我正在研究我的大学项目(基于语音的交通查询系统)。问题是我连接了我的组合框并从Db获取输入,现在我需要一个代码来验证这2个组合框并给出/填写2-3个文本框(combobox1 = From,Combobox2 = To,所以当我选择时并且我需要文本框来显示到达时间,地点之间的距离和公共汽车号/火车号等。)我在数据库中给出了



我尝试了什么:



i尝试在线搜索演示代码/示例以引用我没有。请尽快帮助

I really need help, im working on my college project(voice based transport enquiry system). the problem is i have connected my comboboxes and its taking the inputs from Db and now i need a code to validate those 2 comboboxes and give/fill in 2-3 text boxes(combobox1=From, Combobox2=To , so when i select from and to i need the text box to display time of arrival,distance between the places and bus no/train no. etc..) which i have given in the database

What I have tried:

i tried to search online for demo code/ examples to refer i got none. please help ASAP

推荐答案

对不起,我们不是来为你做功课。但是,以下是Google Gods的一些建议,可以帮助您入门:

* c#winform从数据库中填充组合框 [ ^ ]

* c#winform级联下拉列表 [ ^ ]

* c#如何查询数据库 [ ^ ]

* c#如何从数据库查询中填充文本框 [ ^ ]



您可能需要这样:

* 如何连接到sql server数据库 [ ^ ]

* 首先开始使用实体框架数据库 [ ^ ]
Sorry, but we are not here to do your homework for you. However, here are some suggestions from the Google Gods to get you started:
* c# winform populate combobox from a database[^]
* c# winform cascading dropdownlist[^]
* c# how to query a database[^]
* c# how populate textboxes from a database query[^]

You may need this to:
* how to connect to a sql server database[^]
* getting started with entity framework database first[^]


这篇关于我想根据两个组合框选择在文本框中显示SQL服务器的一些内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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