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. 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
KeithI'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.
|