Thanks for your help. I took another look at codeproject.com under C# and
found this article:
http://www.codeproject.com/cs/combobox/ComboBox_appears_flat.asp
Compiled the C# code down to a dll, and importing it into my project as a
Reference works fine also, without having to convert it to VB.Net.
Add this to the code:
Imports DrawFlat.FlatComboBox
'then in the vb code change
Me.ComboBox1 = New System.Windows.Forms.ComboBox
'to this:
Me.ComboBox1 = New DrawFlat.FlatComboBox
'works like a charm
EXCEPT that on a 1900x1200 resolution Sony Viao screen, there is a wide 3D
border between the textbox and the arrow on the combobox control. Must be a
wide screen issue, since no one else came up with it.
Elizabeth Gee
Information Architect
http://www.nwtd.com
--- Mike Mckenzie <mike@xxxxxxxxxxxxxxxxxx> wrote:
> Lee, it only takes a few mintues to override OnPaint and roll it your own
> way. ControlPaint.DrawBorder() and ControlPaint.DrawBorder3D() are the way
> to go. There is even a ControlPaint.DrawComboButton() method to help you
> out.
>
> Mike
>
> -----Original Message-----
> From: Liz Gee [mailto:lizgeee@xxxxxxxxx]
> Sent: Friday, December 10, 2004 11:45 AM
> To: PADNUG
> Subject: [padnug] Combobox borderstyle Flat with single pixel width
>
>
> Anyone figured out the mystery of the combobox borderstyle Flat in .Net?
>
> http://www.dotnet247.com/247reference/a.aspx?u=http://www.codeproject.com/vb
> /net/flatcombo.asp?target=flat
>
> This link has an unansered thread of how to get the borderstyle flat to be a
> single pixel wide.
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------~--> Make
> a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dpFolB/TM
> --------------------------------------------------------------------~->
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~->
|