I have created a window form with the name Sample
I take a TableLayout panel with two columns and three rows of different height and width and set its Dock Property fill.
Moreover I set its Modifier access level Protected.
After that I put the tool strip on it and after making 4 buttons Refresh Save Edit Delete and Export set its Modifier access level Protected. Datagridview is also taken in the same way in this page. Now my required design is ready in this Sample Form.
After that I created the next form with the name frmTest. Now I want to import all the design of the Sample form in this form with full button events functionality. And for this purpose I inherit the Sample in this way
namespace AB
{
public partial class frmCheck : Sample
{
public frmCheck()
{
InitializeComponent();
}
}
}
Now this form has all the same design which is inherited from the sample form. But there are some issues which is I am facing.
First of all imported TableLayoutpanel in this form is still lock as well as toolstrip where as its access level is set Protected / Public in the Sample form designer page.
Why it is locked.
Secondly, In some pages, in the save even I wrote the code to save the data but the save button inside toolstripp is not firing event. How to get solution.