在richbox中打开txt文档? [英] Open a txt document in to richbox?

查看:65
本文介绍了在richbox中打开txt文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个打开文件目录的命令,让您选择要打开到富文箱的文本文档。

I'm trying to make a command that will open the file directory and let you choose with text document you want to open in to the richbox.


推荐答案

您好,

告诉您的RichTextBox您想要的处理文本文件:

Tell your RichTextBox that you want to deal with text file:

RichTextBox1.LoadFile("C:\MyDocument.txt", RichTextBoxStreamType.PlainText)


这篇关于在richbox中打开txt文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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