Hello there!
This forums has helped me a lot to learn programming now I need your help again. I'm try to figure out a way to create a folder based on users input in Textbox on desktop.
Public Class Form1
Dim username As TextBox
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Dim USERPROFILE As String
USERPROFILE = Environ("HOMEPATH")
Dim oShell : oShell = CreateObject("WScript.shell")
IO.Directory.CreateDirectory(USERPROFILE & "\Desktop\"username)
End Sub
End Class
It giving me errors. Can someone correct me and give a sample code for this?
Any help in appreciated.