Last active
December 23, 2016 15:08
-
-
Save bjoerntx/722484be0826ae44957cad39769c76b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Form1_Load(object sender, EventArgs e) | |
{ | |
RibbonButton rbtnClickMe = | |
new TXTextControl.Windows.Forms.Ribbon.RibbonButton(); | |
rbtnClickMe.Text = "Click Me"; | |
rbtnClickMe.SmallIcon = Image.FromFile("checkmark.png"); | |
rbtnClickMe.Click += RbtnClickMe_Click; | |
SetQuickAccessToolbarStandardItems(new RibbonButton[] { | |
rbtnClickMe }); | |
} | |
private void RbtnClickMe_Click(object sender, EventArgs e) | |
{ | |
MessageBox.Show("Click Me"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment