标题:关于RichTextBoxFinds.Reverse
只看楼主
squall900
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2006-4-6
 问题点数:0 回复次数:1 
关于RichTextBoxFinds.Reverse
public int found(string str, int beg)
{
cf = (ChildForm)this.ActiveMdiChild;
try
{
int len = str.Length;
beg = cf.richTextBox1.Find(str, beg, RichTextBoxFinds.None);
cf.richTextBox1.Select(beg, len);
beg++;
}
catch (Exception err)
{
if (beg == -1)
beg = 1;
}
return beg;
}
这段代码是做成记事本的向下查找的代码,有谁可以告诉我如果是向上查找呢,应该怎么写?
搜索更多相关主题的帖子: Reverse 
2006-04-20 16:12
guoyi_ggg
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2006-4-7
得分:0 

伙计,你应该考虑一下,什么是面向对象

2006-04-22 00:50



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-58831-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.524268 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved