using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace RDPClientApplication
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnConnect_Click(object sender, EventArgs e)
{
rdpCtl.Server = "10.101.98.17";
rdpCtl.UserName = "pb";
//setpass
MSTSCLib.IMsTscNonScriptable mstscScript = (MSTSCLib.IMsTscNonScriptable)rdpCtl.GetOcx();
mstscScript.ClearTextPassword = "theeza17";
rdpCtl.Connect();
}
}
}