I have two forms Form1 and Form2. Form2 is inheriting from Form1.
What I need to do is have Form2 the same as Form 1 and add some features to it, other labels and textboxes. However this is giving me problems.
-
I can’t access features of Form1 from Form2
-
There are certain features which I deleted from form 1 before I created Form 2 and they are still being inherited in my Form2. I can’t delete them from there and I have no idea how they remained there!
-
Also I don’t know why, from the time I created this inheritance, Visual Studio is stopping working every time.
You can’t access the features of Form1 from Form2 because the designer generates the members with private access modifier. To access you must set for members protected access modifier.