G
Guest
Question: how to stop functions from executing twice when using inherited
Windows Forms?
Background:
WindowsForm + forms inheriting from this (base)form.
VB.NET 1.0
Description:
In the BaseForm I've got a procedure which I override in each of the
inherited forms. The procedure controls accessibility of the controls
inherited forms
What happens is that the overriding procedure is called and executed twice.
Why that is I don't seem to work out, nor how to get around it. There is
probably a very clever thought behind this, but I would rather settle with
one execution. Note, that no eventhandlers are defined.
Obviously I can't define the base form as mustinherit, meaning that I must
define the function as overridable with an empty body. I'm sure there is an
easy solution to that, but I don't seem to find any such examples.
Windows Forms?
Background:
WindowsForm + forms inheriting from this (base)form.
VB.NET 1.0
Description:
In the BaseForm I've got a procedure which I override in each of the
inherited forms. The procedure controls accessibility of the controls
inherited forms
What happens is that the overriding procedure is called and executed twice.
Why that is I don't seem to work out, nor how to get around it. There is
probably a very clever thought behind this, but I would rather settle with
one execution. Note, that no eventhandlers are defined.
Obviously I can't define the base form as mustinherit, meaning that I must
define the function as overridable with an empty body. I'm sure there is an
easy solution to that, but I don't seem to find any such examples.