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; using MSTSCLib; namespace RDPTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { try { axMsTscAxNotSafeForScripting1.Server = "test123"; axMsTscAxNotSafeForScripting1.UserName = "administrator"; IMsTscNonScriptable secured = (IMsTscNonScriptable)axMsTscAxNotSafeForScripting1.GetOcx(); secured.ClearTextPassword = "admin@123"; axMsTscAxNotSafeForScripting1.Connect(); } catch (Exception Ex) { MessageBox.Show("Error Connecting"); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)