Bob
Sat Oct 25 04:47:54 CDT 2003
Are you calling DrawReversibleFrame from the MDI parent or the child? The
children are painted after the parent so they may be overwriting the frame.
--
Bob Powell [MVP]
C#, System.Drawing
The October edition of Well Formed is now available.
Find out how to use DirectX in a Windows Forms control
http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
Blog
http://bobpowelldotnet.blogspot.com
"Raul Escobar" <raulescobar@yahoo.com> wrote in message
news:020301c39a58$b3de5d80$a301280a@phx.gbl...
> Non- MDI forms in my MDI app work OK, just the child forms
> don't. So could it be related to the parent form? Funny
> thing, it used to work fine, now it doesn't, so I suspect
> an errant setting somewhere.
>
> >-----Original Message-----
> >Thanks for the answer. I do not have any such code, as
> far
> >as I know, but is there a form setting in either an MDI
> >parent or child form that might cuase this? At one point,
> >I had placed an image on the background of my mdiParent,
> >but removed it, because the redraw was too slow. Is there
> >some setting that might have been changed that might
> cause
> >rhis type of thing? I've verified that a new project
> works
> >fine, but adding test pictureboxes in my MDI application
> >doesn't work. Thanks alot!
> >
> >>-----Original Message-----
> >>DrawReversibleFrame draws on the desktop, not on any
> >specific window so if
> >>something you're doing, such as animation with a timer,
> >is refreshing the
> >>form, it will appear as though the frame is behind your
> >window.
> >>
> >>--
> >>Bob Powell [MVP]
> >>C#, System.Drawing
> >>
> >>The October edition of Well Formed is now available.
> >>Find out how to use DirectX in a Windows Forms control
> >>
http://www.bobpowell.net/currentissue.htm
> >>
> >>Answer those GDI+ questions with the GDI+ FAQ
> >>
http://www.bobpowell.net/gdiplus_faq.htm
> >>
> >>Blog
http://bobpowelldotnet.blogspot.com
> >>
> >>"Raul Escobar" <anonymous@discussions.microsoft.com>
> >wrote in message
> >>news:05a701c399e6$78eb7310$a501280a@phx.gbl...
> >>> I am drawing in a picturebox on a form using
> >>> DrawReversibleFrame and DrawReversibleLine. It used to
> >>> draw fine on the picturebox, now all of a sudden it
> does
> >>> not appear on my form or application, but on VS.NET
> >behind
> >>> my application. Has anyone seen this behaviour, and/or
> >is
> >>> there any form/app settings that would affect this?
> >Thanks.
> >>
> >>
> >>.
> >>
> >.
> >