[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

GUI Password/account code update

I have this code and I want to be able to add the password in the text box.

First Question:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21798521.html

Private Sub Command1_Click()
    If(Text1.Text <> "") Then
        Shell "NET USER " & Text1.Text & " A123@45b /domain"
    End If
End Sub

Basically I want to be able to type in any generic password.
0
CMILLER
Asked:
CMILLER
  • 2
1 Solution
 
Harisha M GCommented:
Private Sub Command1_Click()
    If(Text1.Text <> "" And Text2.Text <> "") Then
        Shell "NET USER " & Text1.Text & " " & Text2.Text & " /domain"
    End If
End Sub
0
 
CMILLERAuthor Commented:
mgh mgharish,

Thanks
0
 
Harisha M GCommented:
You are welcome :)

Thanks for the grade !
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now