repost: selecting text portion of combo box

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

..
 
M

Marshall Barton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top