TextBox查找和替换! [英] TextBox Find and Replace !
问题描述
如果我想在TextBox中进行搜索,您建议做什么?我知道
使用RichTextBox,我们可以使用Find方法来搜索特定的单词
或信息,但我很想知道是否有人知道Find的一些方法和
替换TextBox。
谢谢
" Ramsin Savra" < RS **** @ otxresearch.com>写道:
如果我想在TextBox中搜索,你有什么建议?我知道
使用RichTextBox,我们可以使用Find方法来搜索特定的单词
或信息,但我很想知道是否有人知道Find和
替换TextBox的方法。
谢谢
textBox.Text = textBox.Text.Replace(" foo"," bar");
" Ramsin Savra" < RS **** @ otxresearch.com>写道:
如果我想在TextBox中搜索,你有什么建议?我知道
使用RichTextBox,我们可以使用Find方法来搜索特定的单词
或信息,但我很想知道是否有人知道Find和
替换TextBox的方法。
谢谢
textBox.Text = textBox.Text.Replace(" foo"," bar");
感谢您的帮助,但我对搜索程序应该怎么做?我应该把它作为一个数组或链接列表吗?
再次感谢
C#Learner < CS **** @ learner.here>在消息中写道
新闻:sk ******************************** @ 4ax.com ..." Ramsin Savra" < RS **** @ otxresearch.com>写道:
如果我想在TextBox中搜索,你有什么建议?我知道
使用RichTextBox,我们可以使用Find方法来搜索特定的
wordor信息,但我很想知道是否有人在TextBox中了解Find
和Replace的一些方法。
谢谢
textBox.Text = textBox.Text.Replace(" foo"," bar");
Hi,
What do you suggest to do if I want to do a search in TextBox ? I know that
using RichTextBox, we could have Find method to search for a specific word
or information but I was wonder if somebody knows some methods for Find and
Replace in TextBox.
Thanks
"Ramsin Savra" <rs****@otxresearch.com> wrote:
Hi,
What do you suggest to do if I want to do a search in TextBox ? I know that
using RichTextBox, we could have Find method to search for a specific word
or information but I was wonder if somebody knows some methods for Find and
Replace in TextBox.
Thanks
textBox.Text = textBox.Text.Replace("foo", "bar");
"Ramsin Savra" <rs****@otxresearch.com> wrote:
Hi,
What do you suggest to do if I want to do a search in TextBox ? I know that
using RichTextBox, we could have Find method to search for a specific word
or information but I was wonder if somebody knows some methods for Find and
Replace in TextBox.
Thanks
textBox.Text = textBox.Text.Replace("foo", "bar");
Thanks for your help but what I should to with search procedure ? should I
consider it as an array or link list ?
thanks again
"C# Learner" <cs****@learner.here> wrote in message
news:sk********************************@4ax.com..."Ramsin Savra" <rs****@otxresearch.com> wrote:Hi,
What do you suggest to do if I want to do a search in TextBox ? I know thatusing RichTextBox, we could have Find method to search for a specific wordor information but I was wonder if somebody knows some methods for Find andReplace in TextBox.
Thanks
textBox.Text = textBox.Text.Replace("foo", "bar");
这篇关于TextBox查找和替换!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!