I'm certain this was working at some stage. Wondering why it isn't now.
I've stepped through the code and there's nothing past this.HTML Code:Private Sub EnterTextBox(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtNoBars.Enter, txtMultiplier.Enter, txtCenters.Enter 'DirectCast(sender, System.Windows.Forms.TextBox).SelectAll() 'On entering the textbox select all text Dim myTextBox = DirectCast(sender, System.Windows.Forms.TextBox) myTextBox.SelectionStart = 0 myTextBox.SelectionLength = myTextBox.Text.Length End Sub




Reply With Quote