Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Without more information I can't say for sure why you are seeing the difference in behavior (I would suggest you are seeing the same problem since you admit that the debug version doesn't always work either), but you may find that breakpoints will often "fix" paint problems because switching back to Visual Studio ends up invalidating the entire painting surface, as opposed to just a small part. So you bring up the application and its not painting correctly, you hit a breakpoint in visual studio, switch over look at some variables, go back to the application and its painted correctly because OnPaint was called with the proper clipping rectangle to repaint the entire surface (and OnPaintBackground is also usually called, see below).</p> <p>If this is the case, you should be able to replicate it in the release version by minimizing and restoring your application. If that "fixes" the display of your control, then it is likely caused by a problem with your paint method assuming that it is painting the entire control when it may not be.</p> <p>You might also look into PaintBackground to make sure that you are erasing your control's surface properly. It is possibly that you are leaving your old display and then repainting on top of it instead of starting from a "fresh" canvas.</p> <p>Based on your description of what is going on, and the ways that you make it redraw, those are my best suggestions. I would need some more specific details (Paint code, specific description of what happens - is the control not drawn or does it display only parts, etc.) to provide any more accurate help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload