|
-
Dec 18th, 2011, 02:24 PM
#1
Thread Starter
New Member
Help with this Code?
I am trying to replace the text, FILENAME, which is in RichTextBox1 with whatever the person types in TextBox15. Any help?
-
Dec 18th, 2011, 02:29 PM
#2
Thread Starter
New Member
Re: Help with this Code?
vb Code:
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If RichTextBox1.Contains("FILENAME") Then Replace("FILENAME", TextBox15.Text) RichTextBox1.Text = RichTextBox1.Text.Replace("""", "\""") End Sub
-
Dec 26th, 2011, 12:26 AM
#3
Junior Member
Re: Help with this Code?
Maybe try replacing it with this...
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RichTextBox1.Contains("FILENAME") Then
RichTextBox1.Text = (TextBox15.Text)
RichTextBox1.Text = RichTextBox1.Text.Replace("""", "\""")
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|