CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

No Title

83 Views
Copy Code Show/Hide Line Numbers
this.Listener.ThumbnailButtons.Configure(c =>
{
    c.AddButton()
        .For(this.Handle)
        .WithId(1)
        .WithToolTip("First button")
        .UseIcon(SystemIcons.Asterisk)
        .UseCallback(b => MessageBox.Show("You clicked a button with name: " + b.ToolTip));
 
    c.AddButton()
        .For(this.Handle)
        .WithId(2)
        .WithToolTip("Second Button")
        .UseIcon(SystemIcons.Error); 
});
by TheCodeJunkie
  October 13, 2009 @ 2:52pm

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate