Code Review is a better fit for questions about reviewing
working code in most cases. Anyway, one thing you can improve is to have only two event handlers (e.g.,
TextBoxes_Enter
and
TextBoxes_Leave
) and have then handle the events for both/all TextBoxes. You can achieve that using the
Handles
clause (e.g.,
Handles TextBox1.Enter, TextBox2.Enter,...
) or using
AddHandler
. Then, inside the event handlers, you can cast
sender
to a TextBox to access the specific TextBox that triggered the event (e.g.,
Dim txtBox = DirectCast(sender, TextBox)
) —
41686d6564 21 secs ago