.net中的window应用程序
.net中的window应用程序中采用string类的IndexOf方法来查找时,单击查找按钮,能在Text1中找到需要查找的字符串并把它选中,再次单击则查找下一个怎么实现? --------------------编程问答-------------------- 记录本次查到的位置用IndexOfAny --------------------编程问答-------------------- 能帮我把代码写出来吗? --------------------编程问答-------------------- Index = textBox1.Text.IndexOf(textBox2.Text, Index);textBox1.SelectionStart = Index;
textBox1.SelectionLength = textBox2.Text.Length;
Index = Index + 1;
textBox1.Select();
补充:.NET技术 , C#