borderless combobox

  • Thread starter Thread starter dan fisherman via .NET 247
  • Start date Start date
dan fisherman via .NET 247 said:
How can I create a borderless System.Windows.Forms.ComboBox?

Very quick and dirty (needs to be adapted to work with a themed combobox):

\\\
Imports System.Drawing.Drawing2D
..
..
..
Dim x As New GraphicsPath()
x.AddRectangle( _
New Rectangle( _
1, _
1, _
Me.ComboBox1.Width - 2, _
Me.ComboBox1.Height - 2 _
) _
)
Me.ComboBox1.Region = New Region(x)
gp.Dispose()
///
 
Back
Top