New developer - RDP C# function

R

ryan

Yikes... what am i doing incorrectly here? I'm getting about 9 errors.

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();

}
}
}
 
T

Tim Rentsch

ryan said:
Yikes... what am i doing incorrectly here? [...snip...]

You're posting a question about a C# program to comp.lang.c,
which has to do with C, rather than a newsgroup that has to
do with C#.
 
J

John Gordon

In said:
Yikes... what am i doing incorrectly here? I'm getting about 9 errors.

As someone else said, this isn't C code, so this group may not be the
best place to ask for help.

On a more general note, when asking for help like this, it's best if you
post a *complete* example of the problem:

1) You said you got "about 9 errors", but you didn't post them so we
have no idea what they are.

2) You didn't post the complete context of your code... i.e. the
main() function and exactly how it calls WindowsFormsApplication1.

3) You didn't show us the exact command you used to compile your code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top