Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Classic Visual Basic (VB 6 or earlier) » API » SOS , SOS , MEYDEY F1


SOS , SOS , MEYDEY F1Expand / Collapse
Author
Message
Posted 5/16/2010 3:39:34 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/17/2010 2:20:31 AM
Posts: 2, Visits: 4
I know hwnd number a textbox. how can i search a word in this textbox ?

(a other application of textbox)

i can't speak english

Post #29288
Posted 5/16/2010 7:24:26 AM


Forum God

Forum God

Group: Moderators
Last Login: 2/5/2012 6:29:46 PM
Posts: 1,889, Visits: 5,254
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


Keith

I've been programming with VB for 15 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #29289
Posted 5/17/2010 1:58:48 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 5/17/2010 2:20:31 AM
Posts: 2, Visits: 4
TY Keithuk.

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

Post #29292
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 2:31pm