vb.net - How to add an inner (nested) class to a library class? -
i'm trying add together custom event generator inner class reuse through several forms. @ first going set relevant code within #region , copy-paste code, realized improve way maybe in nested class. want do
partial class form public class verifygenerator ... end class end class public class myform inherits form public class myverifygenerator ... end class end class if there's improve / more logical solution this, i'm ears. in form there's logic find textboxes verifyhandlers , subscribe them event when form generates it, custom logic disable (most) other controls
could create base of operations class exposed functionality , inherit it?
public mustinherit class verifyerform inherits form ' stuff here end class public class myform inherits verifyerform end class vb.net inner-classes nested-class
No comments:
Post a Comment