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.

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.

Get our expert's

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions.

A community for students.

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)
See more answers at brainly.com
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.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

on the login form: Register r = new Register(); r.Show(); Close();
That code doesn't make it show in the same window...
I just made a tab control. Works for now :)

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

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

Not the answer you are looking for?

Search for more explanations.

Ask your own question