2013-4-20:我把老版本的代码重构了一下,新版本赋值问题已完全解决,并且提供很多api给调用。推荐大家升级到最新版本。下载地址:http://tewuapple.github.io/WinHtmlEditor/

为雅安祈祷!

最新版截图(优化前景色和背景色用户体验并且增强表格修改功能)

WinHtmlEditor最新版界面

 

快捷键 功能
ctrl+b 给选中字设置为加粗
ctrl+c 复制选中内容
ctrl+x 剪切选中内容
ctrl+v 粘贴
ctrl+y 重新执行上次操作
ctrl+z 撤销上一次操作
ctrl+i 给选中字设置为斜体
ctrl+u 给选中字加下划线
ctrl+a 全部选中
shift+enter 软回车

 

Winform下的HTMLEditor引用Microsoft.mshtml的注意事项 

有很多用户发来反馈,说窗体加载的时候赋值赋不上去,后来发现是赋值的时候该控件还没初始化完成,把赋值语句修改如下就正常了(同理其他属性设置): 

this.Shown += new EventHandler(Form_Shown);
  void Form_Shown(object sender, EventArgs e)
       {
           this.htmlEditor1.HTML = temp;
       }

 如何使用该控件?(how to use WinHtmlEditor?)

详情请下载解压缩,看视频文件,下载地址:how-to-use-WinhtmlEditor.rar

vb.net使用WinhtmlEditor,下载地址:vb.net使用WinhtmlEditor.rar (多谢群友完善)

如有任何问题或建议请加入QQ群:217478320

兼容.net 2.0以上

开源协议:apache2.0

2013-3-24:自定义按钮显示

新增对工具栏和右键菜单的可配置。如果你不想让某些菜单显示,请在app.config文件appSettings节点配置如下设置,即可:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="removeButtons" value="Cut,Paste"/>
        <add key="removeMenus" value="Cut,Paste"/>
    </appSettings>
</configuration>

现在提供如下标签设置:

New,Open,Print,Save,ShowHTML,Copy,Cut,Paste,Delete,Find,RemoveFormat,JustifyCenter,JustifyFull,JustifyLeft,JustifyRight,Underline,Italic,Bold,BackColor,

ForeColor,StrikeThrough,CreateLink,Unlink,InsertTable,InsertImage,InsertHorizontalRule,Outdent,Indent,InsertUnorderedList,InsertOrderedList,Superscript,

Subscript,WordCount,InsertDate,InsertTime,ClearWord,SpellCheck,About,Preview,AutoLayout,Undo,Redo

(2012-11-05)

新特性:

 

正式发布版本1.0.0.0(2012-06-30

新特性:

1、字数统计

2、新加清除MS-Word格式、拼写检查、插入表格、日期、时间,上标、下标和打印功能

以下是最新版的截图:

 

posted @ 2012-06-30 11:47 特务小强 阅读(17442) 评论(65) 推荐(8) 编辑
摘要: https://blog.csdn.net/weixin_45661908/article/details/123378127 阅读全文
posted @ 2022-09-28 15:52 特务小强 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 代码如下: void SomeClass::SomeFunctionToCorrectName(CString &strName) { // Only alphabets (Aa-Zz), numbers(0-9), "_" (underscore) and "-" (hyphen) are all 阅读全文
posted @ 2021-06-17 09:47 特务小强 阅读(590) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/7332dcb978b2?hmsr=toutiao.io 阅读全文
posted @ 2021-04-04 19:23 特务小强 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 读取Ini文件的类踩了一个坑,当配置文件有中文参数时候,没法正确读取。读到的全是乱码。查询了很久才发现ifstream本身就无法正常读取包含中文路径的文本(具体的解决方案就不细说了网上一堆)。这里主要讲一下getline读取到乱码的解决办法。 原文连接:点击这里查看原博主文章 添加一个函数转换一下编 阅读全文
posted @ 2020-12-09 22:44 特务小强 阅读(2932) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/shsgl/p/4053755.html https://www.cnblogs.com/jameszeng/p/10724841.html https://blog.csdn.net/m0_37362454/article/details/88639 阅读全文
posted @ 2020-11-15 15:04 特务小强 阅读(72) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/vranger/p/3938355.html 阅读全文
posted @ 2020-11-14 09:13 特务小强 阅读(75) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/DaSo_CSDN/article/details/77587916 https://stackoverflow.com/questions/21575310/converting-normal-stdstring-to-utf-8 阅读全文
posted @ 2020-10-23 20:35 特务小强 阅读(1194) 评论(0) 推荐(0) 编辑
摘要: https://www.codeproject.com/Articles/8/MFC-Grid-control-2-27 https://blog.csdn.net/xiaoyu21520/article/details/75305070?utm_medium=distribute.pc_relev 阅读全文
posted @ 2020-07-13 17:53 特务小强 阅读(399) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/itas109/article/details/83653199 https://www.cnblogs.com/lisuyun/p/5245609.html 阅读全文
posted @ 2019-12-04 11:04 特务小强 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/manual/mnl_avalon_spec.pdf https://www.intel.cn/content/www/cn/zh/programmabl 阅读全文
posted @ 2019-07-25 15:35 特务小强 阅读(532) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示