|
-
May 22nd, 2001, 09:05 AM
#1
Combobox - Highlight Text
I have a simple form with a combobox and two text fields as well as two command buttons. I want to highlight the text in the text field portion of the combobox and move the cursor to that field. Anybody able to help me do this?
Thanks!
Claire
-
May 22nd, 2001, 09:29 AM
#2
Re: Combobox - Highlight Text
check on the property .SelLength & .SelStart
.SelStart should be able to move the cursor
HTH
cksiow
http://vblib.virtualave.net - share our codes
-
May 22nd, 2001, 09:30 AM
#3
Re: Combobox - Highlight Text
How about something like this?
private Sub Command1_Click()
Dim Color as ColorConstants
Color = vbYellow
Combo1.BackColor = Color
Combo1.SetFocus
End Sub
Or if you wanted to highlight just the text and not the backcolor then you would use the forecolor property instead.
Hope this helps
Mike Watkins
CodeSprings, inc.
Quality Assurance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|