.NET Framework - RDP - C#

Asked By ryan on 08-Jul-11 02:42 PM
Not sure what I am doing incorrectly here. I am a new programmer. Ideas anyone?



namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
rdp.Server = txtServer.Text;
rdp.UserName = txtUserName.Text;

IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
secured.ClearTextPassword = txtPassword.Text;
rdp.Connect();

}
}
}




Peter Duniho replied to ryan on 08-Jul-11 08:38 PM
You need to post a better question.

The following links should help you understand what that means:
http://www.yoda.arachsys.com/csharp/complete.html
http://www.yoda.arachsys.com/csharp/incomplete.html
http://msmvps.com/blogs/jon_skeet/archive/2010/08/29/writing-the-perfect-question.aspx
http://sscce.org/