This article is a mirror article of machine translation, please click here to jump to the original article.

View: 176727|Reply: 34

[WinForm] .NET/C# Remote Desktop Management Tool [with source code]

[Copy link]
Posted on 8/29/2020 11:22:56 PM | | | |
Although Windows comes with a remote desktop connection, we want to integrate the remote desktop into our own software, do some secondary development work, manage remote servers in batches, etc.

The renderings are as follows:



Remote desktop core library

Windows system comes with remote desktop activex dll, directory:

Such libraries cannot be called directly using C# and need to be converted using AxImp.exe.

Windows Forms ActiveX Control Importer (Aximp.exe)

The ActiveX Control Importer converts type definitions from the COM type library of ActiveX controls into Windows Forms controls.

Windows Forms can only host Windows Forms controls, which are classes that derive from Control. Aximp.exe Generate wrapping classes that can be hosted on ActiveX controls on Windows Forms. This allows you to use the same design-time support and programming methodology that can be applied to other Windows Forms controls.

To host an ActiveX control, a wrapper that derives from AxHost must be generated. This wrapper control contains an instance of the underlying ActiveX control. It knows how to communicate with ActiveX controls, but it shows up as Windows Forms controls. This build control hosts the ActiveX control and exposes its properties, methods, and events as the properties of the build control.

The command is as follows:


The final result is a :AxMSTSCLib.dll, MSTSCLib.dll file



Create a new RemotePlus .NET 4.7.2 WinForm project and reference the two dlls after generation. (MSTSCLib.dll Need to set the embedding interop type to false)

Create a new frmLogin.cs form, which is mainly filled in server address, account, password, and other information.



The filled remote desktop information is eventually passed to the main form.

The main codes are as follows:


Finally, attach the source code:

Tourists, if you want to see the hidden content of this post, pleaseReply





Previous:VS Code's experimentalDecorators warning
Next:Nuget Series 1 uses asp.net to build a private Nuget repository
Posted on 6/24/2022 10:20:15 AM |
adrianchan posted on 2022-6-24 09:30
Good stuff, just needed, great. Thank you to the owner.

It takes money to download, it's really powerful, and it's quite shocking
 Landlord| Posted on 1/18/2021 4:56:28 PM |
.NET/C# on to allow remote desktop access
https://www.itsvse.com/thread-9522-1-1.html
Posted on 6/24/2021 3:07:29 PM |
With/reply to the topic closed
RE: .NET/C# 远程桌面管理工具【附源码】 [修改]
Posted on 8/30/2020 11:07:56 AM |
See how
Posted on 8/31/2020 7:20:35 PM |

See how
Posted on 9/1/2020 12:25:25 PM |
xuexixuexi
Posted on 9/28/2020 11:46:11 PM |
See how
Posted on 9/30/2020 10:02:44 AM |
Thanks for sharing
Posted on 10/29/2020 8:48:14 AM |

Thanks for sharing
Posted on 12/18/2020 10:38:29 AM |
Remote Desktop Management Tool [with Source Code] [Modified]
Posted on 1/18/2021 9:25:13 PM |
Big brother
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com