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.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
macHard wrote:If I remember right, you MUST do it this way:Yes your right
Code: Select allTextBox1.Text = TextBox1.text.Replace("original", "new")
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
Hmm for me it was not working anyway...ill give it another try...
i Tryd and its still not working...
Here is my WB.DocumentCompleted Code
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
Try this one, I edited:
NOT THIS, THIS IS THE ORIGINAL:
NOT THIS, THIS IS THE ORIGINAL:
Code: Select all
And edit it into:
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
Code: Select all
Simple mistake
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
Finally its working , Thanks man !
Copyright Information
Copyright © Codenstuff.com 2020 - 2023