Skip to content
TheCodeKing edited this page Jul 24, 2011 · 3 revisions

Overview

ActiveButtons is a .Net code library which allows developers to very quickly and easily add additional buttons to the Windows title bar along-side the standard maximise, minimise and close buttons.

Example

// hook the windows form load event
protected override void OnLoad(EventArgs e)
{
	base.OnLoad(e);

	// get an instance of IActiveMenu for the current form
	IActiveMenu menu = ActiveMenu.GetInstance(this);
	// create a new button instance
	ActiveButton button = new ActiveButton();
	// set some properties
	button.BackColor = Color.LightBlue;
	button.Text = "One";
	// attach a click handler
	button.Click += new EventHandler(button_Click);
	// add the button to the menu instance
	menu.Items.Add(button);
}
Clone this wiki locally