anonymous
  • 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.
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
on the login form: Register r = new Register(); r.Show(); Close();
anonymous
  • anonymous
That code doesn't make it show in the same window...
anonymous
  • anonymous
I just made a tab control. Works for now :)

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
Alright. :D Didn't know what you meant. Sorry.
anonymous
  • 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; ...
anonymous
  • 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 :)
anonymous
  • anonymous
Haha think I misread what you wrote earlier. Your tip works perfect, thanks a bunch! Solved my provblem. Medal given :)

Looking for something else?

Not the answer you are looking for? Search for more explanations.