# BeforeToolClick in Dashboard **Category:** [Epicor ERP 9](https://www.epiusers.help/c/e9/7) **Created:** 2016-12-16 15:04 UTC **Views:** 2251 **Replies:** 2 **URL:** https://www.epiusers.help/t/beforetoolclick-in-dashboard/36638 --- ## Post #1 by @jgiese.wci Trying to hook onto before RefreshTool is clicked. Used the wizard to add the BeforeToolClick with a messagebox and it doesn't fire at all. Anyone else ever work around this? ```cs private void MainController_BeforeToolClick(object sender, Epicor.Mfg.UI.FrameWork.BeforeToolClickEventArgs args) { MessageBox.Show(((ButtonTool)sender).Key); } ``` --- ## Post #2 by @Aaron_Moreng Try using the base tool click event: > private void baseToolbarsManager_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs args) > { > MessageBox.Show(args.Tool.Key); > } --- ## Post #3 by @jgiese.wci I wasn't going to keep fighting it i simply removed it and added my own button. --- **Canonical:** https://www.epiusers.help/t/beforetoolclick-in-dashboard/36638 **Original content:** https://www.epiusers.help/t/beforetoolclick-in-dashboard/36638