-
April 17th, 2002, 01:11 PM
#1
Combo width is too narrow, can I show a label flag something to show the whole content?
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
Best Regards,
Kevin Shen
-
April 17th, 2002, 01:14 PM
#2
Re: Combo width is too narrow, can I show a label flag something to show the whole content?
'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
iouri@hotsheet.com
-
April 17th, 2002, 01:24 PM
#3
Re: Combo width is too narrow, can I show a label flag something to show the whole content?
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
-
April 17th, 2002, 01:52 PM
#4
Re: Combo width is too narrow, can I show a label flag something to show the whole content?
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
Best Regards,
Kevin Shen
-
April 18th, 2002, 01:44 AM
#5
Re: Combo width is too narrow, can I show a label flag something to show the whole content?
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.
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
|