|
-
Nov 10th, 2000, 05:00 AM
#1
Thread Starter
New Member
LS
Does anyone know if it's possible to change the length of a the dropdownlist from a "simple" combobox?
- D -
-
Nov 10th, 2000, 05:26 AM
#2
PowerPoster
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
-
Nov 10th, 2000, 06:51 AM
#3
Thread Starter
New Member
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 -
-
Nov 10th, 2000, 07:43 AM
#4
-
Nov 10th, 2000, 04:56 PM
#5
Thread Starter
New Member
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 -
-
Nov 10th, 2000, 06:01 PM
#6
Addicted Member
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...
-
Nov 11th, 2000, 04:36 AM
#7
Thread Starter
New Member
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 -
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
|