Again :). NETCF doesn't support this.Owner.
It always returns null because some son-of-a-nasty-motherhood was lazy enough to not implement this.
All You can do is to pass parent form as a parameter into the second form.
And don't initialize forms straight when You're having those as a global objects.
Instead do it anywhere else:
Form1 form1;
public Form2(Form1 parent)
{
InitializeComponent();
form1 = parent;
textBox1.Text = form1.generatedCode;
}
If You'll find my answer satisfactory or helpful - mark it as answered or vote for it! Thank You.
"If You think You know better then me, why is Your code not working, then don't waste my time at this forum. Otherwise - do as I'm suggesting."
I'm on MSDN just like MD House in the clinic. But I'm also a human which sometimes needs to see another doctor :)