title bar flicker on full screen form

A

anon

I have two forms which are both set as full screen with

this.WindowState = FormWindowState.Maximized;

When I navigate between these forms, the title bar flickers on both of
them before disappearing. I've read threads here about a bug with this
when using ShowDialog, but I am not using this. I am simply doing

currentForm.Hide();
nextForm.Show();

I load all my forms ahead of time, and then get them from a 'form
manager' object. In one form, I have the FormWindowState.Maximized
code in the onPaint overridden method, as well as in the Form_Load
method and the Form's constructor. In the other form, I only have the
....Maximized code in the constructor. I'm not sure where the right
place for it is.
 
A

anon

Thanks for the reply and link. So this means I have to use P/Invoke
with that coredll.dll just to make the Title bar disappear correctly?
 

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