title: Obligation to call a method
body: <p>In VB .NET, when you create a user control class, you have the obligation to call the sub InitializeComponent within the constructor.</p>
  
  <p>If you don't you'll a warning message like this :</p>
  
  <blockquote>
    <p>'Public Sub New()' in
    designer-generated type
    'MyUserControl' should call
    InitializeComponent method.</p>
  </blockquote>
  
  <p>What is the mechanism used to raise this warning?  Is it something I can reproduce for my own functions?</p>