LS
Does anyone know if it's possible to change the length of a the dropdownlist from a "simple" combobox?
- D -
Printable View
LS
Does anyone know if it's possible to change the length of a the dropdownlist from a "simple" combobox?
- D -
Just applied the following code will change you combo box width.
Code:Option Explicit
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 Command1_Click()
SendMessage Combo1.hwnd, CB_SETDROPPEDWIDTH, CLng(Text1), 0
End Sub
Chris,
Thanks for the fast reply, but I didn´t ask for that. I asked how to change the length of the dropdownlist from a combobox (so I can show more items when the user actvates it). Hope you also know the answer to that question.
- D -
Hello Dino
As far as I know the only way you kan change
the droplength of a combobox to use the
combobox from the Microsoft Forms2 Object Library
and change the Listrows property to the amount
of items you wan't to show.
Just wanna help :)
Anders,
I get this error-massage when i put the object on my form
"System Error &H80070485(-2147023739) Cant find library-file" perhaps the translation is not correct my message was partialy in Dutch. Did I do something during my installation?
- D -
Hi,
what VB and service pack are you running ?
This error usually is caused by bad file references for the component you are trying to use ( licences for OCX )...
Upgrade service pack ?
Re-install VB ?
hope I help...
Hi,
I´m running VB6 Pro and I don't know anything about a service(pack). Is there really no other way to do this???
- D -