Windows应用程序中的日记应用程序 [英] Diary Application in windows application

查看:106
本文介绍了Windows应用程序中的日记应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个简单的日记应用程序,我可以添加我每天的笔记。我有一般的想法,我可以使用RichTextBox控件来编写简单的文本和日历控件来导航前一天的条目。并创建一个包含nvarchar(max)列的表来存储RichTextBox的内容。

但是我将如何保存RichTextBox控件中编写的内容。意味着一些文本将以粗体和斜体标题,一些世界将使用不同的字体和不同的对齐来编写。保存特定日期的条目并在下次显示后,这种格式将如何保留?有人有任何想法将这些段落存储在数据库中吗?如果有可能那么我也想添加图像并用输入的内容保存但是如何?我想要一般的想法。

I want to create a simple diary application where I can add my every day’s moment’s notes. I have general idea that I can use RichTextBox control to write simple text and a calendar control for navigating previous day’s entries. And create a table with nvarchar(max) column to store RichTextBox’s content.
But how I will save the content written in RichTextBox control as it is. Means Some text will be heading with bold and italics, some worlds would be written using different fonts and different alignments. How this formatting will remain after saving particular day’s entries and showing in next time? Anyone have any idea to store that paragraphs in database? If there is possible then I also want to add images and save it with entered contents but how? I want general ideas, please.

推荐答案

阅读以下有关如何将BLOB存储到Sql Server的信息:http://www.akadia.com/services/dotnet_read_write_blob.html [ ^ ]
Read the following on how to store BLOBs to Sql Server : http://www.akadia.com/services/dotnet_read_write_blob.html[^]


这篇关于Windows应用程序中的日记应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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