Code:If TextBox1.Tex*****ntains(" HERE TEXT") Then 'here what you want to do after it finds a word End If
Hello, Im making a File Finder but I have some problems
This just add the files of the selected path, how I make It to FIND a word I put on a TextBox?Code:ListBox1.Items.Clear() FolderBrowserDialog1.ShowDialog() For Each filer In My.Computer.FileSystem.GetFiles(FolderBrowserDialog1.SelectedPath) ListBox1.Items.Add(filer) Next
----
Last edited by alvaritos; 06-24-2011 at 08:07 AM. Reason: DC
Code:If TextBox1.Tex*****ntains(" HERE TEXT") Then 'here what you want to do after it finds a word End If
Well I think I explained bad . . . but Well I solved it
Code:Dim valor As String valor = TextBox1.Text ListBox1.Items.Clear() FolderBrowserDialog1.ShowDialog() For Each filer In My.Computer.FileSystem.GetFiles(FolderBrowserDialog1.SelectedPath, FileIO.SearchOption.SearchAllSubDirectories) If filer.Contains(valor) Then MsgBox(filer) ListBox1.Items.Add(filer) End If Next
Markes solved then :3
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)