Full Screen Title bar flickering

  • Thread starter Thread starter BrianP
  • Start date Start date
B

BrianP

I just installed SP3 of CF 1 to resolve another issue I had with the
title bar appearing. But I've got one left. I have one form (Form)
Menuwhere the Title Bar flickers when going from my MainForm to and
from this FormMenu. I have a few other forms that I go back and forth
from the MainForm and I don't have this issue. I've compared the code
and can't find anything different between the forms where the title bar
doesn't flicker, and the FormMenu where the title bar does flicker.

I'm not sure where the

this.WindowState = FormWindowState.Maximized;

line is supposed to go, so I have it multiple places : the form's
constructor, the onPaint method, and the onLoad method. I do that in
the forms where the title bar doesn't flicker, too. There is no menu on
FormMenu, and I have tried it with and w/out

this.Menu = null;

just to try different things.

Any ideas what might be causing this?

Thanks
 
Hi,

Try to hide your start bar :
ShowWindow( FindWindow( _T("HHTaskBar"), _T("") ),
SW_HIDE);
If you use C# you can import this function with a dllImport and it
works fine too.


BR


Fabien Decret
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/



BrianP a écrit :
 
Fabien, thanks for your reply. I have tried that before also and it
worked, but it also had an undesirable effect. I was warned that if I
used such a call, I need to make sure to 'reverse it' when my
application ended. I did that, but that caused the title bar to
flicker on at the end of my application as it was exiting to Windows.
I guess that flicker once at the end of the app is better than many
times when going between forms within my app, but I'd like to find a
way to eliminate it altogether.

It still stumps me why the flicker only happens between this one form
and not all the others.
 
Back
Top