Transparent images are pure evil in Windows Forms, so I created my own management class to handle them. The designer does not show my control when he is empty. I would like to add a thin border, but only in the design view (and when the border is not added by the user). How can I do it?
My class:
class TransparentImage : Control { public Image Image { get; set; } protected Graphics graphics; public string FilePath { get; set; } protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x00000020;
source share