title: Visual Basic .net custom Numeric TextBox set default value to TextAlign property
body: <p>I'm wiriting a Numeric TextBox user control to filter non numeric digits. I want to set the TextAlign property default value to Right when I drop it to a Form, but I can´t manage to do it. I browsed the web and all I get is some form of overriding the property TextAlign, but nothing works. Any help will be appreciated. Thanks.</p>
  
  <pre><code>Public Class NumericTextBox
      Inherits TextBox
  
  &lt;DefaultValueAttribute(HorizontalAlignment.Right)&gt; _
  Public Overloads Property TextAlign() As HorizontalAlignment
      Get
          Return MyBase.TextAlign
      End Get
      Set(ByVal value As HorizontalAlignment)
          MyBase.TextAlign = value
      End Set
  End Property
  </code></pre>