我想一直将文本保存在文本框中 [英] i want to save the text in the textbox for all the time

查看:98
本文介绍了我想一直将文本保存在文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
在Windows应用程序(framework3.5)(c#.net)中,
在那一点上,我已经创建了文本框(t1)和按钮名="change",我的要求是,当我单击更改"按钮时,应该打开另一个面板(其中包含按钮名="save"和richtextbox). .在richtextbox中更改消息后,当我单击保存"时,应将其永久保存在textbox(t1)中


实际上,现在我可以节省最多仅关闭程序的时间(这仅意味着最多执行时间).我的问题是我想将其作为永久数据存储在文本框中(t1)
给我一个主意

thanq

hi
in windows application(framework3.5)(c#.net),
in that , at one point , i had created the textbox(t1) and button name ="change", my requirement is when i click "change" button another panel(it contains button name= "save" and richtextbox)should be opened. after changing the message in richtextbox , when i click "save" it should be saved in the textbox(t1) for permanently


actually right now i able to save upto time of closing the program only(it means upto the execution time only ) my problem is i want to make it as permanent data in the textbox(t1)
give me an idea

thanq

推荐答案


将文本保存到文本文件,数据库或xml中.您可以选择从此处加载/更改它.
祝您好运
Hi,
Save the text into a textfile, database or xml. you can choose to load/change it from there.
Good luck


这正是您的硬盘/数据库的用途.将值保存到数据库或文件中.
This is exactly what your hard drive / database is for. Save your values in a database or in a file.


使用文件或数据库来完成此操作,
就像您的数据将在文本框t1中一样,然后通过执行一些检查(例如,文本框的长度是否大于1并全部大于),将该记录保存到文件中.如果您问我,文件将是更好的选择.

谢谢与问候
基数
use a file or a database to do so,
Like when your data will be in the textbox t1 then save that record in a file by performing some checks like if the length of the textbox is greater than 1 and all. File would be better option if u ask me.

Thanks & Regards
Radix


这篇关于我想一直将文本保存在文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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