Examples

Top  Previous  Next

EurekaLog offers the option to have an additional button on the error dialog. If you want to take advantage of this feature, you would, certainly, want to define its behavior. You can achieve that using this event.

In this example, we're simply going to ask the user if he/she is certain that he/she wants to close the dialog. However, you may introduce a much more complex behavior, based on your application's needs.

Of course, you have to enable the custom help button in the options dialog first.

 

 

C# example:

private void eurekaLog1_CustomButtonClickNotify(Exception Error, EurekaLogSystem.EurekaLogOptions Options, ref bool CloseDialog)
{
  CloseDialog = MessageBox.Show("Do you need help closing this dialog?", "EurekaLog",
      MessageBoxButtons.YesNo) == DialogResult.Yes;
}

 

 

Visual Basic example:

Private Sub EurekaLog1_CustomButtonClickNotify(ByVal [Error] As System.Exception, ByVal Options As EurekaLogSystem.EurekaLogOptions, ByRef CloseDialog As System.Boolean) Handles EurekaLog1.CustomButtonClickNotify
   CloseDialog = MessageBox.Show("Do you need help closing this dialog?", "EurekaLog", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes
End Sub