How to put a form inside a tab?

Asked

Viewed 77 times

1

I want to add a form inside a tab, I have tried using the command "this.tabPage1.Controls.Add(new Form1);" and it did not work, how to proceed?

  • Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).

1 answer

2

This is not possible, the Form is a window, and a window is the biggest thing about a GUI desktop application, so it doesn’t have like something smaller, a tab, incorporate something bigger.

You should plan the content in another way that fits inside the tab. In fact it doesn’t even take much, everything you would put in the Form place inside the Tab.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.