See if this helps.
Public Class Form1
Public Const cFmtCurrency As String = "##,###,###" ' don't need decimal for the local China currency
Private Sub setCoolHandlersForTextBoxes()
For Each myCoolTextBox In New TextBox() {TextBox1, TextBox2, TextBox3}
AddHandler myCoolTextBox.Validated, AddressOf _myCoolTextBoxes_Validated '// set the event to be handled by each TextBox.
Next
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
setCoolHandlersForTextBoxes()
End Sub
Private Sub _myCoolTextBoxes_Validated(ByVal sender As Object, ByVal e As System.EventArgs)
With CType(sender, TextBox)
If Not .Text = "" AndAlso IsNumeric(.Text) Then .Text = CInt(.Text).ToString(cFmtCurrency) '// Format.
End With
End Sub
End Class
This link might also help.