What you'll need
A host application, and a viewer application.
The host
- Add reference, rdpcomapi 1.0 Type Library.
![Add reference]()
- Add using RDPCOMAPILib.
- Add this method.
- Add this class-level variable.
Create three new buttons, and a textbox(don't rename the controls, make use of their default names)
Code
First button
Second button
Third button
The viewer
- Right-click on the toolbox and click Choose items.
![Choose items]()
- In the dialog under COM components, check RDPViewer Class, and click OK.
![RDPViewer]()
- Drag and Drop the RDPViewer object onto the form.
![RDPViewer]()
Create two new buttons and a textbox.
Code
First button
Second button
How to use
- On the host click button one, the start button
- On the host click button two, and they get the invite button
- On the host copy the text in the text box
- On the viewer paste it into the text box
- On the viewer click button one, the connect button
- To end click the Finish button on either side
Full source code
The viewer
The host