D dan fisherman via .NET 247 Mar 9, 2005 #1 How can I create a borderless System.Windows.Forms.ComboBox?
H Herfried K. Wagner [MVP] Mar 9, 2005 #2 dan fisherman via .NET 247 said: How can I create a borderless System.Windows.Forms.ComboBox? Click to expand... 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() ///
dan fisherman via .NET 247 said: How can I create a borderless System.Windows.Forms.ComboBox? Click to expand... 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() ///