Checking user selection for clear tool confirmation dialog

Hi,
When a user clicks on the Clear tool, there is a dialog box asking if the user wants to proceed or not. I would like to write customization to execute a process based on user action. How do I figure out what the dialog result is?

private void baseToolbarsManager_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs args)
{
switch (args.Tool.Key)
{
case “ClearTool”:
if (fooDialog == DialogResult.Yes) //How do I get the dialog response here?
foo1();
break;
}
}

Thank you,
Peter

Something like this is probably what you are after @peterp

1 Like

Thank you for your response but that is not I am looking for. When I clicked the clear icon, there is a native Epicor Clear Tool confirmation dialog box. I need to know what this dialog name is so I could check to see what if the user selected Yes or No.

ClearToolConfirmation

You would need to handle this in a form customization. Use the before tool click event to build in your logic

1 Like

I am using form customization. What I don’t know is the name/id of the Clear Tool dialog box so I could check whether the user selects Yes or No.

I’m not sure what the name of the dialog box is.
am just reminded an old site that I found helpful when I investigated toolbars in the past: