repost: selecting text portion of combo box

  • Thread starter Thread starter george
  • Start date Start date
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

..
 
george said:
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?


I thought I answered this in your other thread. If you're
still having trouble, please respond in the other thread.
 
Back
Top