You can't do it directly. The best way to do this is to create a public function in Form1. Something like:
public void RSAObj(string value)
{
textbox1.text = value;
}
Then, in program.cs do something like this:
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Form1 form1 = new Form1();
form1.RSAObj(RSAObj.ToXmlString(true));
Application.Run(form1);
}
- Pete