如何在窗口应用程序的C#中的组合框和文本框中存储数据. [英] How to store data in the combobox and textbox in C# in window apps.

查看:103
本文介绍了如何在窗口应用程序的C#中的组合框和文本框中存储数据.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我也想将数据存储到组合框和文本框中,之后我要
将Combobox和Textbox的整个数据插入数据库(Sql Server).

阅读--------
首先,您要从组合框中选择任何字段,类似地,将文本插入到另一个文本框中.请记住您尚未单击按钮.此后-
再次从组合框中选择任何字段,将文本插入到另一个文本框中.之后-
再次从组合框中选择任何字段,将文本插入到另一个文本框中.之后-

现在,您最后单击了按钮,并将整个数据插入到数据库中.意思是说数据保留在管道中
然后将全部数据发送到数据库."

我是否应该使用循环播放.告诉我正确的答案.

那么它的处理步骤是什么.

I want to store data into the Combobox and Textbox also and after that I want to
insert the whole data of Combobox and Textbox into the database(Sql Server).

Read it ----
"First you select any field from combobox,similarly text insert into the other textbox.Remember you have not clicked on the button.After that--
Again you select any field from combobox, text insert into the other textbox.After that--
Again you select any field from combobox, text insert into the other textbox.After that--

Now at the last you have clicked the button and whole data is inserted into the database.Mean to say that data remain in a pipeline
and after that whole data go to the database."

Should I use the Looping or not. Tellme the proper answer.

So what is the procedure for it.

推荐答案

此基本示例将为您提供帮助-此处浏览一下
This basic example should help you - Simple Database Application - Part 1[^].

In addition, have a look here[^].


我认为您是C#.Net的初学者,我建议您首先学习有关C#basic的知识.
尽管您可以看到
此处是有关Windows窗体应用程序中的插入,更新,删除"的非常基础的文章,可能会有所帮助您.
i think you are very beginner in the C#.Net i suggest you to learn something about C# basic first.
though you can see here is very basic article for Insert,Update,Delete in Windows Form Application that may helps you.


这篇关于如何在窗口应用程序的C#中的组合框和文本框中存储数据.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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