replacing a word of textbox1...

frix199

Member
Joined
Jul 18, 2005
Messages
19
Programming Experience
1-3
how can i by clicking button1, replace all the words "word" of textbox1 to "drow"??

plz help.....
 
VB.NET:
[SIZE=2][COLOR=#008000]'assuming that the text is: -This word should be replaced with drow but anyway word is always word :)
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].TextBox1.Text = [/SIZE][SIZE=2][COLOR=#0000ff]Me[/COLOR][/SIZE][SIZE=2].TextBox1.Text.Replace("word", "drow") [/SIZE][SIZE=2][COLOR=#008000]'result: - This drow should be replaced with drow but anyway drow is always drow
[/COLOR][/SIZE]

Regards ;)
 
Back
Top