记住文本框中的换行符 [英] Remember line break in Textbox

查看:113
本文介绍了记住文本框中的换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.
我正在做一个程序,可以添加/更新联系人.对于联系人,有以下信息:
名称
电话
美孚
邮件
笔记.
问题是笔记.我需要记住所有的换行,因此将其重新加载到文本框中,它将记住换行.所有信息都存储在XML文件中.还必须再次将其加载回去.
例如:
注释可能如下所示:
Sure Polaroid将其头版产品带入2011年.
与Lady Gaga合作.
但是我们大多数人都可以使用手机快速捕捉难忘的时刻.好吧,Instaprint旨在通过将其与Instagram绑定在一​​起来重现过去的照片热潮-广受欢迎(目前仅限iOS)的应用程序,可让您对照片应用各种滤镜以在朋友之间快速共享

Hello.
I''m doing an program where it''s possible to add/update contacts. To an contact there is following information:
Name
Phone
Mobil
Mail
Notes.
The problem is notes. I need to remember all the line shift, so then it''s loaded back to the text box, it will remember the line shift. All the information is stored in and XML file. Also have to load it back again.
For Example:
Notes could look like this:
Sure Polaroid brought its headline product into 2011.
by teaming up with Lady Gaga.
But most of us are just fine with using our phones to quickly capture memorable moments. Well, Instaprint aims to recreate the photo craze of yesteryear by tying it in to Instagram -- the wildly popular (and currently iOS-only) app that lets you apply various filters to your photos for quick sharing among friends

推荐答案

您使用了PreserveWhitespace吗?!
如果这样做没有帮助,请共享一些代码.
Did you use PreserveWhitespace?!
Share some code if this doesn''t help.


这篇关于记住文本框中的换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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