I create a form with tabcontrol.
I load tabpage form below code.
Let's say we have 2 tabpage:
At the first load the form text =FormName & "View Mode"
When user click btnAdd then the parent form text =FormName & "Add Mode".
The problem is form 1 in "Add Mode" and form 2 in FormName & "View Mode".
When we switch the tabpage the form text does not change base on its form state.
How to solve this problem?
.FormBorderStyle = Windows.Forms.FormBorderStyle.None
.Dock = DockStyle.Fill
.TopLevel = False
.frmParentForm = Me --> Change form text inside