如何在c#.net中保存Windows应用程序中的每个用户详细信息? [英] How to save each user details in windows application in c#.net?

查看:82
本文介绍了如何在c#.net中保存Windows应用程序中的每个用户详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#.net中创建了一个Windows应用程序,其中我有一个登录表单,一个注册表单,一个主页表单和一个带有一个表的sql server数据库。好了现在任何用户都可以注册然后登录访问主页。他在texbox控件中输入了一些内容然后退出应用程序。现在,如果他再次登录并进入主页,他应该再次在文本框中看到他在之前登录时键入的文本。请帮助我如何做,并尽可能给我示例代码。

Hi, I have created a windows application in c#.net where i have one login form, one registration form, one homepage form and one sql server database with one table. Ok Now any user can register and then login to access homepage. There he type something in texbox control and then he exit application. Now if he login again and goes to homepage, he should again see his text on textbox that he typed on previous login. Please help me how to do it and give me example code if possible.

推荐答案

您可以将输入的文本存储在数据库中,以便随时随地获取。创建一个包含两列(文本,用户)的新表。
You can store the typed text in the database so you can get it anytime you like. Create a new table with two columns (Text, User).


这篇关于如何在c#.net中保存Windows应用程序中的每个用户详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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