|
-
Apr 30th, 2001, 07:42 AM
#1
Thread Starter
Lively Member
combo box auto dropdown
Hi Folks
Does anyone know how to make a combo box drop down displaying its contents, with a call to the API?
Cheers
-
Apr 30th, 2001, 09:44 AM
#2
Fanatic Member
[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 Any) As Long
Private Const CB_SHOWDROPDOWN = &H14F
Private Sub cmdopencbo_Click()
SendMessage cboonoff.hwnd, CB_SHOWDROPDOWN, 1, 0
End Sub
[CODE]
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Apr 30th, 2001, 01:13 PM
#3
Thread Starter
Lively Member
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
|