Hack Forums
[.NET] file detector help - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] file detector help (/showthread.php?tid=5271720)



file detector help - missNasser - May 16, 2016

hey guys I created a file detector how can i make it say file detected when the file is found?

Code
Public Class Form1

    Private Sub RichTextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox1.TextChanged
        If Dir$("youtube.txt") = "" Then
            MsgBox("TXT File Not Found!!")
        End If
    End Sub
End Class
[code]



* - Odus - May 17, 2016

Either negate the condition or https://msdn.microsoft.com/en-us/library/752y8abs.aspx