R
Rainer Queck
Hello NG,
in my application I have a Panel, docked right to my Form. On this panel I
draw - cyclic triggered by a System.Winforms.Timer - a bitmap using the
Graphics class.
using (Graphics g = pnlDisplay.CreateGraphics())
{
g.DrawImage(myBitmap, 0, 0);
}
On the left side of my main window, I have some other panels, a
DataGridView, and a TabControl and a Splitter, between those controls and my
"Display Panel".
If I now change the size of my Window in the running application, the
"Display" keeps its size , while the Bitmap loaded to it shows the dynamicly
changing graphic an the other controls left to the splitter move out of the
window.
So far so good, but if the window reaches a size, where the other Controls,
left to the "Display", are no longer shown, the "DisplayTimer" no longer
fires, and my dynamic graphic freeses. I have set a breakpoint to the timer
event handler, that is why I know, that it does not get fired any more.
My Question: What is causing this odd behavior, and what can I do about it?
Regards
Rainer Queck
in my application I have a Panel, docked right to my Form. On this panel I
draw - cyclic triggered by a System.Winforms.Timer - a bitmap using the
Graphics class.
using (Graphics g = pnlDisplay.CreateGraphics())
{
g.DrawImage(myBitmap, 0, 0);
}
On the left side of my main window, I have some other panels, a
DataGridView, and a TabControl and a Splitter, between those controls and my
"Display Panel".
If I now change the size of my Window in the running application, the
"Display" keeps its size , while the Bitmap loaded to it shows the dynamicly
changing graphic an the other controls left to the splitter move out of the
window.
So far so good, but if the window reaches a size, where the other Controls,
left to the "Display", are no longer shown, the "DisplayTimer" no longer
fires, and my dynamic graphic freeses. I have set a breakpoint to the timer
event handler, that is why I know, that it does not get fired any more.
My Question: What is causing this odd behavior, and what can I do about it?
Regards
Rainer Queck