Hi there,I am going to set up the forms I will be using in my project, encountered some problems, solved them and would like to ask you, if my way will work or if there are pitfalls I have not seen yet.
I made a baseform ("MyBaseFRM") which inherits from the strataframe-standardform. There is a themed panel on it and the form has some properties and methods all forms will have. I created new forms by selecting "New Item/Windows-Form/Inherited Form" (I hope this is right translated, I use a german version of VS2010).
Then I created a form, let's name it "MySimplegridFRM" which inherits from "MyBaseFRM" and thought, I could create Forms from this Inherited Form the same way to. But this does not work.
Setting up a new form by choosing any kind of form and setting the inheritance-statement did not work too. Or creating a class which inherits from "MySimpleGridFRM".
Finally I ended up creating templates. I made a template from my "MySimpleGridFRM" and now everything works fine. I tested adding some properties in "MyBaseFRM" and could see that this changes were reflected in the inherited "MySimpleGridFRM". So everything works like I expected it to be but as I am new to inheritance in VB. I would like to ask you if this will work or if there are things I have not considered yet. I should add that all the forms I will need will inherit from "MyBaseFRM", "deeper" inheritance is not needed for my forms.
Thanks in Advance
Thomas