Work Around
If the goal is to highlight and replace the text anytime a textbox receives focus, then a simple work-around would be:
Sub Globals
'Declare the global variables here.
TextNormalColor = cWhite
TextHighlightColor = cCyan
End Sub
Sub App_Start
Form1.Show
AddTextBox("Form1","TextBox1",75,40,75,22,"ABCDEF")
AddTextBox("Form1","TextBox2",75,80,75,22,"ABCDEF")
AddTextBox("Form1","TextBox3",75,120,75,22,"ABCDEF")
End Sub
Sub TextBox1_GotFocus
TextBox1.Color = TextHighlightColor
End Sub
Sub TextBox1_LostFocus
TextBox1.Color = TextNormalColor
End Sub
Sub TextBox1_KeyPress(Key)
If TextBox1.Color = TextHighlightColor Then TextBox1.Text = ""
TextBox1.Color = TextNormalColor
End Sub
Add similar subs for other text boxes.