Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 11 Online
OpenStudy (anonymous):

If I create two forms in C#, how can I have them both show in the same window? Etc: If I have a login form and a registration form which I want separated, I would like the login form to show first, but when I click "register" I would like the register form to pop up in the same window, just replacing the login form.

OpenStudy (anonymous):

on the login form: Register r = new Register(); r.Show(); Close();

OpenStudy (anonymous):

That code doesn't make it show in the same window...

OpenStudy (anonymous):

I just made a tab control. Works for now :)

OpenStudy (anonymous):

Alright. :D Didn't know what you meant. Sorry.

OpenStudy (anonymous):

Just re-read that. To do that, just make all the login stuff invisible, and the register stuff visible: loginButton.Visible = false; loginUsername.Visible = false; ...

OpenStudy (anonymous):

It's a nice idea, but rather time consuming. It would be weird if there was no other way, I'll give it a shot later though, when I get home. Thanks for the idea :)

OpenStudy (anonymous):

Haha think I misread what you wrote earlier. Your tip works perfect, thanks a bunch! Solved my provblem. Medal given :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!