Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
150
Avoid big red cross in case of exception
posted

If an  exception occur in the UltraChat, it would display a big red cross in UltraChat control.

Can I handle the exception and avoid this red cross?!

Thank you!!! 

Parents
No Data
Reply
  • 28496
    Offline posted

    it sounds like an exception occurring as a result of the chart's OnPaint method, so it's not simple exception handling. 

    but you can inherit the chart, override OnPaint, and handle the exception there...

     public class MyChart : UltraChart

    {

    public override void OnPaint(PaintEventArgs e)

    {

    try

    {

    base.OnPaint(e);

    }

    catch

    {

    // insert code to handle exception

Children
No Data