Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Search(object obj)
- {
- try
- {
- foreach (string file in txtFiles)
- {
- if (file.Contains(textBox1.Text))
- {
- this.Invoke((MethodInvoker)delegate
- {
- rastas = file;
- });
- }
- i++;
- }
- }
- catch (UnauthorizedAccessException uAEx)
- {
- MessageBox.Show("Nu negalima kai kur ieit. Access denied.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement