在RichBox中读取文件并显示MessageBox [英] Read file in RichBox and show MessageBox
本文介绍了在RichBox中读取文件并显示MessageBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好!
我在表单上有richbox,button和openDialog。我可以在richbox中打开文本文件。我需要读取所有文本并在每四个字符后显示MessageBox。例如:蓝色,MessageBox将显示晴空和深海的颜色。谢谢你的答案
Hello!
I have richbox, button and openDialog on form. I can open text file in richbox. I need to read all text and display MessageBox after every four characters. For example: "blue", MessageBox will show "the colour of the clear sky and the deep sea". Thanks for answers
推荐答案
这是一个经常被问到的问题。请点击以下链接:
http://stackoverflow.com/questions/7370891/how-to-search-for-a-string-in-text-file-in-c-sharp [ ^ ]
http:// stackoverflow。 com / questions / 10709821 / find-text-in-string-with-c-sharp [ ^ ]
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/48886fae-7392-4fea-8b66-49077ff5daa9 [ ^ ]
http://msdn.microsoft.com/en-us/library/db5x7c0d。 aspx?cs-save-lang = 1& cs-lang = csharp#code-snippet-1 [ ^ ]
http://msdn.microsoft.com/en-us/library/9yyz8a6c.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/aa287535% 28v = vs.71%29.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/aa287548% 28v = vs.71%29.aspx [ ^ ]
This is quite often asked question. Follow the below links:
http://stackoverflow.com/questions/7370891/how-to-search-for-a-string-in-text-file-in-c-sharp[^]
http://stackoverflow.com/questions/10709821/find-text-in-string-with-c-sharp[^]
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/48886fae-7392-4fea-8b66-49077ff5daa9[^]
http://msdn.microsoft.com/en-us/library/db5x7c0d.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1[^]
http://msdn.microsoft.com/en-us/library/9yyz8a6c.aspx[^]
http://msdn.microsoft.com/en-us/library/aa287535%28v=vs.71%29.aspx[^]
http://msdn.microsoft.com/en-us/library/aa287548%28v=vs.71%29.aspx[^]
这篇关于在RichBox中读取文件并显示MessageBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文