txtTrgPath.text is a text box where I type in the pathname. I wanna to check whether the textbox is empty or not. I'm using the isEmpty function as stated below, but I keep receiving the message "Path is not empty" even though I typed or didn't type in the path name. And, how to check whether the pathname I typed in is exist or not, if doesn't exist, how can I create the the directory.

If Not IsEmpty(txtTrgPath.Text) Then
MsgBox "Path is not empty"
else
MsgBox "Path empty"
End If