Winforms - How to create new tab and TabPage from current form to MainWindow form
问题 I have a MainWindow form which contains TabControl component where dynamicly on click on menuItem I create a new tab and TabPage . The new created TabPage contains a new Form . The new opened TabPage , which contains the new Form en. Products have DataGridView with products list. When I double click on a cell in the DataGridview from Products form I want to open new tabPage to Mainwindow . dataGridView1_CellContentDoubleClick -> open new tab in main window In MainWindow I create: private void