I have a form called ScanFolder , and I need another form, which should be very similar to ScanFolder , so I decided to use the form inheritance . But there seems to be a misunderstanding with the constructor.
ScanFolder as follows:
public partial class ScanFolder : Form { public ScanFolder(MainForm parent, bool[] autoModes, GlobalMethods GMethodsClass) {
I tried to inherit Form as follows:
public partial class Arch2 : ScanFolder { }
But I get a Constructor warning of type 'mhmm.ScanFolder' not found, and there is also an error in Arch2 form editing mode, where I see a call stack error.
So, I tried something like this:
public partial class Arch2 : ScanFolder { public Arch2(MainForm parent, bool[] autoModes, GlobalMethods GMethodsClass) : base(parent, autoModes, GMethodsClass) { } }
But it is all the same.
As you can see, I obviously do not know what I am doing. I am trying to make Arch2 look like ScanFolder , so I see it in the constructor view, and also redefine some methods or event handlers.
source share