Inheriting a class to call a function unknown until runtime.
Posted on 2011-09-22
I am loading in usercontrols dynamically at runtime. Each UserControl inherits from baseUC. The baseUC has I made called InitializeMe()...
public Overridable Sub InitializeMe()
...and each UserControl that inherits baseUC has...
public sub Overrides InitializeMe()
...and I want to make a call to InitializeMe in the UserControl not baseUC...
...however it just calls the baseUC.InitializeMe().
I put the baseUC.InitializeMe sub in there so VWD likes it at design time. I have tried using...
Public MustOverride Sub InitializeMe but it says I must have MustInherit on baseUC but I don't want to do that as there are other functions that are used in baseUC.
I am not sure how to tackle this code and your help is greatly appreciated.