Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Shell("CMD.exe")
SendKeys.Send("net user")("TextBox1.Text")("TextBox2.Text")
SendKeys.Send("{ENTER}")
End Sub
End Class
它说:
错误 1 表达式不是数组或方法,并且不能有参数列表。
对于 SendKeys.Send("net user")