Hi Guys!
I stuck in this problem quiet awhile. I have a MainForm in my application. It contains a second one as a member. If both a visible I have a problem to redraw the second one.
eg: MainForm and SecondForm is open and I move another window over the SecondForm. After that I click on the MainForm it will get the Focus and it will be redrawn. But the SecondForm stays behind.
I tried the following:
Using the OnActivation or OnEnter of my MainForm to redraw my Second doesn't work. (I got a appropriate result but my MainForm lost the focus and that should be the case)
I tried to paint the SecondForm in OnPaint of MainForm but that doesn't work either.
What is the right solution for this problem. Two Threads? an Mdi solution?
greetings Stefan
I stuck in this problem quiet awhile. I have a MainForm in my application. It contains a second one as a member. If both a visible I have a problem to redraw the second one.
eg: MainForm and SecondForm is open and I move another window over the SecondForm. After that I click on the MainForm it will get the Focus and it will be redrawn. But the SecondForm stays behind.
I tried the following:
Using the OnActivation or OnEnter of my MainForm to redraw my Second doesn't work. (I got a appropriate result but my MainForm lost the focus and that should be the case)
I tried to paint the SecondForm in OnPaint of MainForm but that doesn't work either.
What is the right solution for this problem. Two Threads? an Mdi solution?
greetings Stefan
Comment