Form Border Flicker

M

Mulucian

In my project, I have a single (base) form that has
IsMdiContainer set to TRUE. I load an initial form and
from there show and hide forms based on button clicks.

Everything is working the way I want it to but there's a
problem with the painting. I want to use borderless forms
(FormBorderStyle = None), but if I do so, there is a
split-second "flicker" effect. Basically, the form is
drawn with a full border and then has its border erased.
The forms' content is shifted slightly down about 1/4
inch and then jumps back to its correct position after
the border is erased. (If I use forms with any other kind
of border, the flicker effect doesn't happen but I don't
want to use bordered forms.)

While this is only for a split-second, it is completely
noticeable and irritating. Does anyone know how to get
around this?

Please email me at (e-mail address removed) since I may not
check this message board for awhile.

Thanks!
 
J

Joe White

(a copy of this post was forwarded to your e-mail)

I really don't think you want MDI for what you're doing. Can the user
show more than one child window at a time? Can the user resize the
child windows to get more working space? Can the user minimize the
child windows? If the answers are all No, then MDI will cause you more
grief than good.

Consider putting your child content on UserControls instead of Forms,
changing your parent form to non-MDI, and showing your child content by
setting the UserControl's Parent to your main form and Dock to Fill.
Then you can continue to show/hide content as you are currently.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top