Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


SOS , SOS , MEYDEY F1


SOS , SOS , MEYDEY F1

Author
Message
Erkan Cetiner
Erkan Cetiner
Forum God
Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)

Group: Forum Members
Posts: 2, Visits: 4
I know hwnd number a textbox. how can i search a word in this textbox ?

(a other application of textbox) w00t

i can't speak english Hehe

Keithuk
Keithuk
Forum God
Forum God (291K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Welcome to A1vbcode Erkan.

Erkan Cetiner (5/16/2010)
I know hwnd number a textbox. how can i search a word in this textbox ?

Well for searching for any characters in a TextBox I would use the Instr function. Wink

Private Sub Command1_Click()

'Text1 - text
'Text2 - search string
If InStr(Text1.Text, Text2.Text) > 0 Then
    MsgBox Text2.Text & vbCrLf & " is in" & vbCrLf & Text1.Text
Else
    MsgBox Text2.Text & vbCrLf & " isnt in" & vbCrLf & Text1.Text
End If

End Sub


Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Edited
5/16/2010 by Keithuk
Erkan Cetiner
Erkan Cetiner
Forum God
Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)Forum God (978 reputation)

Group: Forum Members
Posts: 2, Visits: 4
TY Keithuk.

But I know this "instr Function".  I want to learn something else. For ex:


GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search