c# - Windows Form inheritance -
I want to create a bunch of forms which are all the same properties and the parameters of the constructor.
I tried to create a class that comes from the form and after that there are succession of that class from all my classes, but I think that since I can not say InitializeComponent () So I had some problems.
Is there some C # code on how to do this?
parent code> initial component to your constructor call base < / Code> should be called in such a way:
public YourFormName (): base () {//. ..} (You must have call manufacturer for initializeComponent in your original form. Did you not take it, did you?)
Instead of using a constructor with parameters, on the form for the property form, you will have a headache.
Comments
Post a Comment