0

I am creating a system to validate if a text file contains this serial number, if it contains it opens to Form2.

enter image description here

Sérgio Wilker
  • 162
  • 1
  • 2
  • 18

1 Answers1

1
Dim content = My.Computer.FileSystem.ReadAllText(filePath)
If content.Contains(stringToSearch) Then
    Dim form As New Form2
    form.Show()
End If
dovid
  • 6,354
  • 3
  • 33
  • 73