Combo width is too narrow, it can not show the whole info I want to show. I wonder if I can show a label flag something to show the whole content?
Best Regards,
Kevin Shen
Printable View
Combo width is too narrow, it can not show the whole info I want to show. I wonder if I can show a label flag something to show the whole content?
Best Regards,
Kevin Shen
'this will make the text area wider
private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (byval hwnd as Long, byval wMsg as Long, byval wParam as Long, lParam as Long) as Long
private Const CB_SETDROPPEDWIDTH = &H160
private Sub Form_Load()
' set the width for the dropdown list.
SendMessage Combo1.hwnd, _
CB_SETDROPPEDWIDTH, 300, 0
' Select the first choice.
Combo1.ListIndex = 0
End Sub
Iouri Boutchkine
[email protected]
Also try this in Form_Load event
YourCombo.ToolTipText=YourCombo.Text
It creates yellow Tip with the context of your control when you point mouse for a second .
Vlad
I want to show the tootiptext when I expand the combobox and the mouse is on one of the long content option. I want to know which event I need to use.
Thanks!
Best Regards,
Kevin Shen
Hi,
Try using combo box of Microsoft Form2 Controls.
It has a listwidth property.when the combobox is in drop down position,The list expands to show the contents.
Hope it helps.