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
1060
UltraPictureBox RED CROSS question
posted

Hi.

I am using a ultrapicturebox to display varbinary() field from SQL  no probles.. works well

The problem i have is have been getting intermittent RED X for some data which is i suspect too big.

What wouldn't be a problem if i knew where to trap the error on my ultrapicturebox object.

The way it is now... once I get a RED-CROSS, I am forced to close the form and go back to it because I cannot see anymore pictures, regardless if the source is good or not.

Any help ?  I am using 9.2.20092.2058

 

Using Microsoft PictureBox doesnt give me any problems

 

 

  • 469350
    Suggested Answer
    Offline posted

    The big red X is what happens when something causes an Exception in the OnPaint of any control. I don't think there is any way to trap for this error, unless maybe you derive a control from UltraPictureBox and override the OnPaint and then wrap the call to the base inside a try...catch.