在启动时读取.rtf文件 [英] reading an .rtf file on startup

查看:118
本文介绍了在启动时读取.rtf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们。我需要一些关于我的一个应用程序的问题的帮助

hi guys. i need some help in regards to a problem im having with one of my applications

所有我想要的是一个富文本文件的内容或.rtf被读取和显示在一个应用程序启动时的富文本框

all i want is a for the contents of a rich text file or .rtf to be read and displayed in a rich text box upon the startup of the application

 

例如说我有一个名为"name.rtf"的rtf文件保存在目录C:\users \documents\\\
ames \ name.rtf和我的表单中名为richtextbox1的富文本框。

e.g. say i have a rtf file named "name.rtf" saved in the directory C:\users\documents\names\name.rtf and a rich text box in my form named richtextbox1.

 

我如何制作它以使richtextbox1.text = name.rtf的内容。

how do i make it so that the richtextbox1.text = the contents of name.rtf.

 

name。 rtf只包含2个单词,所以大小不应该是个问题吗?

name.rtf only contains 2 words so size shouldnt be a problem?

 

提前感谢

推荐答案

这与正则表达式无关,所以我怀疑你会在这里找到一个好的解决方案。请将您的问题发布到Windows窗体论坛:

This has nothing to do with Regular Expressions, so I doubt you will find a good solution here. Please post your question to the Windows Form Forum here:

http: //social.msdn.microsoft.com/Forums/en/winforms/threads


这篇关于在启动时读取.rtf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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