1. 首页
  2. 编程语言
  3. C#
  4. C# 仿windows 记事本

C# 仿windows 记事本

上传者: 2019-07-05 02:32:40上传 RAR文件 70.57KB 热度 32次
从下往上查找用richTextBox1.Find实现查找功能数据查找、怎么将找到的数据定位到文本的相应的位置usingSystem.Text.RegularExpressions;stringstr=System.IO.File.ReadAllText("c:/k.txt");Regexreg=newRegex("B");Matchmat=reg.Match(str);while(mat.Success){MessageBox.Show(mat.Index.ToString());//位置mat=reg.Match(str,mat.Index+mat.Length);}
下载地址
用户评论