Valhalla Legends Archive

Programming => General Programming => .NET Platform => Topic started by: VeBee on August 05, 2006, 03:23 PM

Title: Help! VB.NET 2003
Post by: VeBee on August 05, 2006, 03:23 PM
    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.
:(
Title: Re: Help! VB.NET 2003
Post by: Warrior on August 05, 2006, 03:25 PM
Maybe it doesn't find RunWoW? Just a thought.
Title: Re: Help! VB.NET 2003
Post by: K on August 05, 2006, 06:06 PM
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.

Title: Re: Help! VB.NET 2003
Post by: VeBee on August 05, 2006, 06:33 PM
ok ill look into it.