Home > Net > C # call RDP failed, but always can not find out the mistakes
C # call RDP failed, but always can not find out the mistakes
Time:09-25
Question background: 1. is in the process of implementation in COM components to join Microsoft RDP Client Control - version 9 and Microsoft Terminal Services Control Type Library, also have registered to Control: regsvr32 C: \ Windows \ System32 \ mstscax DLL,
2. btnConnect under the key code is:
rdpClient. Server=cbxserver. Text;//get the server IP RdpClient. UserName=cbxusername. Text;//get the user name IMsTscNonScriptable secured=(IMsTscNonScriptable) rdpClient. GetOcx (); Secured. ClearTextPassword=txtpassword. Text;//get the user password RdpClient. The Connect ();//connection
3. implementation results: Program without error, btnConnect under other content can be achieved, only call RDP this part does not implement, the corresponding rdpClient box blank,
BTW: IP/user name/password should be not wrong, because before I use remote control program, use the computer first own MSTSC to the IP/user name/password remote control,
My foundation is bad, the ask Daniel to help me find cut failure fault because ! 100 points on! Thank you very much!
CodePudding user response:
Access problem, the program and manual with you is not a privilege