1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-06-02 23:34:09 +02:00
TweetDuck/Core/Controls/FlatButton.cs

21 lines
474 B
C#

using System;
using System.Windows.Forms;
namespace TweetDck.Core.Controls{
class FlatButton : Button{
protected override bool ShowFocusCues{
get{
return false;
}
}
public FlatButton(){
GotFocus += FlatButton_GotFocus;
}
private void FlatButton_GotFocus(object sender, EventArgs e){ // removes extra border when focused
NotifyDefault(false);
}
}
}