Dim btn As New Button btn.Parent = Me.ContainerSLD Dim buttonBackground As New Bitmap(btn.Width, btn.Height) Using g As Graphics = Graphics.FromImage(buttonBackground) g.DrawImage(Me.ContainerSLD.BackgroundImage, New Rectangle(0, 0, buttonBackground.Width, buttonBackground.Height), btn.Bounds, GraphicsUnit.Pixel) End Using btn.BackgroundImage = buttonBackground
btn.BackgroundImage = buttonBackground
btn.BackColor=color.Transparent
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)