如何允许用户在c#中输入fogueted注释 [英] How to allow user to enter fomated comments in c#

查看:77
本文介绍了如何允许用户在c#中输入fogueted注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..



i有一个C#windows应用程序,我计划提供用户工作区,允许用户输入将存储在数据库中的文本或外部文件。

是否有任何窗口或第三部分控件,其中用户可以输入文本和格式,就像在本网站的问题框我们可以制作粗体,斜体,给文字颜色。





不幸的是,如果没有这样的控制,任何人都可以提出任何想法作为解决方案上面提到的问题...



我也可以在我的应用程序中使用notepad ++作为解决方案。如果是,请建议。我在互联网上搜索,但没有得到解决方案。



谢谢..

Hello all..

i have a C# windows application where i am planning to provide user work-area which allows user to enter text which will be stored in database or external file.
is there any windows or 3rd part control wherein user can enter text and format it same way as in this website's "ask Question BOX" where we can make bold, italics and give color to text.


unfortunately if there is no such control , can anyone suggest any ideas as a solution to the above mentioned problem...

and also can i use notepad++ inside my application as a solution to this. if yes please suggest. i was searching on Internet, but failed to get a solution.

Thank you..

推荐答案

1.您应该使用 RichTextBox 类,它是在.NET库中为Windows窗体应用程序提供的。您可以在 MSDN中找到有关此课程的详细信息。 [ ^ ]



2.更多细节也在MSDN中: RichTextBox概述 [ ^ ]
1.You should use RichTextBox class, that is provided in the .NET library for windows forms application. You can find details about this class in MSDN.[^]

2.More details are also in MSDN: RichTextBox Overview[^]


基于Windows窗体的文本编辑器,带有HTML输出 [ ^ ]





下载用户控件,您将获得所需的功能返回可以保存在数据库中的html
A Windows Forms based text editor with HTML output[^]


download the user control and you will get the required functionality, it returns html that can be saved in the database


另请参阅Pavel Torgashov在CP上的优秀快速彩色文本框控件:[ ^ ]。它功能齐全。



自2011年以来,Pavel一直在维护和开发此控件,现在可以使用NuGet进行快速安装。
Also see the excellent Fast Colored TextBox control by Pavel Torgashov here on CP: [^]. It is amazingly full-featured.

Pavel has been maintaining and developing this control since 2011, and it is now available using NuGet for a fast install.


这篇关于如何允许用户在c#中输入fogueted注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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