• Welcome to Valhalla Legends Archive.
 

Help! VB.NET 2003

Started by VeBee, August 05, 2006, 03:23 PM

Previous topic - Next topic

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.
:(

Warrior

Maybe it doesn't find RunWoW? Just a thought.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

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.


VeBee