Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim rwow As String
rwow = RichTextBox1.Find("RunWoW")
If rwow = "RunWoW" Then
RichTextBox1.Text = "accepted"
End If
End Sub
Hi, i just write the above code, and when i run it, nothing happens when i click the button.
:(
Maybe it doesn't find RunWoW? Just a thought.
Take a look at what Find() returns -- the type and the meaning -- on the MSDN page for the RichTextBox (http://msdn2.microsoft.com/en-us/library/system.windows.forms.richtextbox_members.aspx). Then look at what type you're assigning it to and how you're using it. Note any inconsistancies. Fix.
ok ill look into it.