?
Solved

GUI Password/account reset

Posted on 2006-04-02
3
Medium Priority
?
190 Views
Last Modified: 2010-04-07
I need help with some code. I dont know how to code for text box input.

I have a form that has a text box for the command, username, password and /domain

Example from a command line.
C:\>net user chris.miller A123@45b /domain

The only box that will be different is the username.

How do I code this?
0
Comment
Question by:CMILLER
3 Comments
 
LVL 37

Accepted Solution

by:
Harisha M G earned 2000 total points
ID: 16355071
Hi,

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

---
Harish
0
 

Author Comment

by:CMILLER
ID: 16355121
mgh mgharish,

Thanks, I have also posted another question that has to do with this one.

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_21798531.html
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question