Replace Text in a TextBox HELP?!

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
15 posts Page 2 of 2
Contributors
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Replace Text in a TextBox HELP?!
Codex
macHard wrote:
If I remember right, you MUST do it this way:
Code: Select all
TextBox1.Text = TextBox1.text.Replace("original", "new")
Yes your right
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

Hmm for me it was not working anyway...ill give it another try...
YouTube Downloader v3.0
Image
Image
Image
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

i Tryd and its still not working...
Here is my WB.DocumentCompleted Code
Code: Select all
TextBox1.Text = WebBrowser1.Document.Url.ToString
RichTextBox1.Text = TextBox1.Text
RichTextBox1.Text.Replace("http://www.youtube.com/watch?v=", "a")
RichTextBox1.Text.Replace("&feature=feedf", "a")
TextBox1.Text = RichTextBox1.Text
YouTube Downloader v3.0
Image
Image
Image
User avatar
bisnes_niko
Serious Programmer
Serious Programmer
Posts: 409
Joined: Tue Aug 24, 2010 1:21 pm

Try this one, I edited:

NOT THIS, THIS IS THE ORIGINAL:
Code: Select all
TextBox1.Text = WebBrowser1.Document.Url.ToString
RichTextBox1.Text = TextBox1.Text
RichTextBox1.Text.Replace("http://www.youtube.com/watch?v=", "a")
RichTextBox1.Text.Replace("&feature=feedf", "a")
TextBox1.Text = RichTextBox1.Text
And edit it into:
Code: Select all
 
TextBox1.Text = WebBrowser1.Document.Url.ToString
RichTextBox1.Text = TextBox1.Text
RichTextBox1.Text = richtextbox1.text.Replace("http://www.youtube.com/watch?v=", "a")
RichTextBox1.Text = richtextbox1.text.Replace("&feature=feedf", "a")
TextBox1.Text = RichTextBox1.Text
Simple mistake
User avatar
Napster1488
VIP - Donator
VIP - Donator
Posts: 524
Joined: Fri Jan 07, 2011 8:41 pm

Finally its working , Thanks man !
YouTube Downloader v3.0
Image
Image
Image
15 posts Page 2 of 2
Return to “Tutorial Requests”