Maybe you could do:

VB Code:
  1. Private Sub Command1_Click()
  2.     Dim strTempArray() As String
  3.     Dim strTemp As String
  4.     Dim intFreeFileNum As Integer
  5.     Dim intCounter As Integer
  6.    
  7.     intFreeFileNum = FreeFile()
  8.    
  9.     strTempArray = Split(Text1.Text, " ")
  10.    
  11.     Text2.Text = strTempArray(0)
  12.    
  13.     Open "\filenamehere.txt" For Input As intFreeFileNum
  14.         Do Until EOF(intFreeFileNum)
  15.             Input #intFreeFileNum, strTemp
  16.            
  17.             strTempArray = Split(strTemp, " ")
  18.            
  19.             For intCounter = 1 To UBound(strTempArray)
  20.                 If LCase(Text2.Text) = LCase(strTempArray(intCounter)) Then
  21.                     Text2.Text = "*" + Text2.Text
  22.                 End If
  23.             Next intCounter
  24.         Loop
  25.     Close intFreeFileNum
  26.  
  27. End Sub

I think that does what you want to do without needing API.