vb.net - borderless button in visual basic.net? -
hey there asking how make borderless button in vb.net can set style flat , make background color transparent always button focused , shows in shape of button ruins button style want here class used earlier didn't work
public class buttonex inherits button private _shouldshowfocus boolean = false public property shouldshowfocus() boolean return _shouldshowfocus end set(byval value boolean) _shouldshowfocus = value end set end property protected overrides readonly property showfocuscues() boolean return _shouldshowfocus end end property end class
you subclass standard button , override onpaint method achieve borderless button.
class borderlessbutton inherits button protected overrides sub onpaint(byval pe painteventargs) mybase.onpaint(pe) pe.graphics.drawrectangle(new pen(backcolor, 5), clientrectangle) end sub end class
i'm assuming you've tried out button.flatappearance
properties , none of these solve problem.
Comments
Post a Comment