Hi all, first post. I am a C# novice, but I have some experience in other C-derived languages.
I am trying to close a Windows Form and open another. This is the code that I am trying to use:
FormChat fm = new FormChat(client, username);
fm.Show();
fm.Activate();
this.Close();
However, both forms close: the new Form closes even before I see it open (I know of it's existance only because of a strategic mbox it opens). If I comment out the this.Close() line then both stay open. So how can I close the current form without closing any children (is that the right word) forms?
Thanks!