using System.Windows.Forms; namespace RyzStudio.Windows.ThemedForms { public class TMenuButton : TButton { public TMenuButton() { } protected override void OnMouseClick(MouseEventArgs e) { base.OnMouseClick(e); if (e.Button == MouseButtons.Left) { if (this.ContextMenuStrip != null) { this.ContextMenuStrip.Show(this, e.Location); } } } } }