I’m not sure if this is allowed but I have a main form that calls another form with ShowDialog which attempts to call another form the same.
So, for example:
form1 -> form2.showdialog -> form3.showdialog
I am getting an error at the showdialog of form3:
var ssscu = new SSS.SssTwainSimple.MainForm();
ssscu.ShowDialog();
This is the error:
{“Form showDialog tried to set an
ineligible form as its owner. Forms
cannot own themselves or their
owners.\r\nParameter name: owner”}
I’m not sure I understand what the problem is, am I not allowed to call a showdialog from a form that is a dialog?
Thanks,
Eroc
You certainly are allowed, this ought to work.
But I do think it is strange that you create a dialog-form called MainForm.
I expect it is something caused by other stuff happening in events. What does mainForm do in it’s constructor/Load-event ?