C# 仿windows 记事本

时间:2013-04-19 14:12:17
【文件属性】:
文件名称:C# 仿windows 记事本
文件大小:71KB
文件格式:RAR
更新时间:2013-04-19 14:12:17
C# 仿windows 记事本 从下往上查找 用richTextBox1.Find实现查找功能 数据查找、怎么将找到的数据定位到文本的相应的位置 using System.Text.RegularExpressions; string str = System.IO.File.ReadAllText("c:/k.txt"); Regex reg = new Regex("B"); Match mat = reg.Match(str); while(mat.Success) { MessageBox.Show(mat.Index.ToString());//位置 mat = reg.Match(str, mat.Index+mat.Length); }
【文件预览】:
记事本
----查找内容.txt(365B)
----新建 文本文档 (3).txt(2KB)
----记事本.sln(916B)
----记事本()
--------Form1.cs(16KB)
--------bin()
--------obj()
--------Properties()
--------Program.cs(468B)
--------Form1.Designer.cs(27KB)
--------Form1.resx(9KB)
--------记事本.csproj(4KB)
--------001.ico(1KB)
----记事本.suo(17KB)
----窗体置顶显示.txt(798B)
----替换.txt(407B)

网友评论