G
george
Hi,
I use the following code (kindly provided by Dan Artuso)
to select the whole text in a text box when I click in it:
Static bSelectAll As Boolean
If Not IsNull(Me.MyTextbox) And Not bSelectAll Then
Me.MyTextbox.SelStart = 0
Me.MyTextbox.SelLength = Len(Me.MyTextbox)
bSelectAll = True
Else
bSelectAll = False
End If
This works fine. However when I tried to apply the code to
a combo box it didn't work. Any clues?
Thanks a lot in advance, george
I use the following code (kindly provided by Dan Artuso)
to select the whole text in a text box when I click in it:
Static bSelectAll As Boolean
If Not IsNull(Me.MyTextbox) And Not bSelectAll Then
Me.MyTextbox.SelStart = 0
Me.MyTextbox.SelLength = Len(Me.MyTextbox)
bSelectAll = True
Else
bSelectAll = False
End If
This works fine. However when I tried to apply the code to
a combo box it didn't work. Any clues?
Thanks a lot in advance, george