Skip to content

Instantly share code, notes, and snippets.

@AlphaNecron
Last active March 4, 2021 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlphaNecron/008163a00fc4b754abc7c1c136209359 to your computer and use it in GitHub Desktop.
Save AlphaNecron/008163a00fc4b754abc7c1c136209359 to your computer and use it in GitHub Desktop.
using System.Windows.Forms;
namespace YourNamespace
{
public partial class CommandLinkButton : Button
{
private const int BS_COMMANDLINK = 0x0000000E;
protected override CreateParams CreateParams
{
get
{
var cParams = base.CreateParams;
cParams.Style |= BS_COMMANDLINK;
return cParams;
}
}
public CommandLinkButton()
{
InitializeComponent();
this.FlatStyle = FlatStyle.System;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment