Valhalla Legends Forums Archive | .NET Platform | Help! VB.NET 2003

AuthorMessageTime
VeBee
    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.
:(
August 5, 2006, 8:23 PM
Quarantine
Maybe it doesn't find RunWoW? Just a thought.
August 5, 2006, 8:25 PM
K
Take a look at what Find() returns -- the type and the meaning -- on the MSDN page for the RichTextBox.  Then look at what type you're assigning it to and how you're using it.  Note any inconsistancies.  Fix.

August 5, 2006, 11:06 PM
VeBee
ok ill look into it.
August 5, 2006, 11:33 PM

Search