Hi,
Try this:
At the class level,
Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, _
ByVal Msg As Integer, ByVal wParam As Short, _
ByVal lParam As Short) As IntPtr
In the form load event,
' &H160 - CB_SETDROPPEDWIDTH
' 400 - Desired drop-down width
SendMessage(ComboBox1.Handle, &H160, 400, 0)
HTH.
"Phil" <Ph**@discussions.microsoft.com> wrote in message
news:DB**********************************@microsof t.com...
Hello all,
Could anybody tell me how to change the drop down width of the drop down
control for VB.NET!!!
There are loads of examples for vb 6 ie
http://vbnet.mvps.org/index.html?cod...rightalign.htm
But VB.NET doesn't allow the use of the ANY keyword in the declare
statements.
Any help with this would be super.
Thanks in advance.
Phil.