title: vb.net InitializeComponent() is not declared
body: <p>I want to use InitializeComponent() when I create a custom control (to be sure everthing is initialized before I use it), but the compiler says it's not declared. But my Designer.vb contains a sub:</p>
  
  <pre><code>&lt;System.Diagnostics.DebuggerStepThrough()&gt; Private Sub InitializeComponent()
  </code></pre>
  
  <p>with all new instances I created.</p>
  
  <p>Why can't I call that?</p>
  
  <p>edit this is how I call InitizialeComponent:</p>
  
  <pre><code>Public Class CustomControlsTextBox : Inherits TextBox
  Public Sub New()
      MyBase.New()
      InitizialeComponent() 'this function is not declared
  End Sub
  End Class
  </code></pre>