My application pops a form as a child of the main form. On the form is
User Control with a Panel where Graphics are rendered. When executed
from Visual Studio in debug mode the drawing is often rendered as expected,
imagine a simply XY graph. If the panel's graphic aren't drawn then adding
two or three break points to the drawing routines usually fix the problem.
When executed inside Visual Studio in release mode, or from the.exe in any mode, the graphics are never rendered, although the user control's Paint method is called. Resizing the form cause the repaint to be called again, of course, and the image is now rendered correctly.
Can anyone give me some insight as to why there's a difference in the behavior between Debug and Release modes, from execution within VS and out side VS, any why are the break points sometimes fixing things? And how can I get the graphics to be consistently visible.
Thanks,
Rick