Where do I put my initialization code in my custom web component vb project?
-
My class is called cwcComboBox, and it inherits from the System.Web.UI.WebControls.ListBox class, so I created a sub called cwcComboBox with no parameters to be my classes constructor, but I never see the message box I put at the end of it, so I don't think it's being called. I want to put a bunch of initialization code in the constructor that will be run before the properties get called. If not in a constructor, where should I put this code? If I do use a constructor, how do I call the MyBase's constructor? Thank you.
-
My class is called cwcComboBox, and it inherits from the System.Web.UI.WebControls.ListBox class, so I created a sub called cwcComboBox with no parameters to be my classes constructor, but I never see the message box I put at the end of it, so I don't think it's being called. I want to put a bunch of initialization code in the constructor that will be run before the properties get called. If not in a constructor, where should I put this code? If I do use a constructor, how do I call the MyBase's constructor? Thank you.
Too much C# for me. I forgot that New was the constructor for a class in VB.Net. Coming from C++ and C# I thought it was the name of the class. Anyway now that I'm using New, I can use the MyBase.New() to call the constructor for the base class. So this issue is solved :)