How to hide a form's title bar without maximizing the form

  • Thread starter Thread starter Rod Early
  • Start date Start date
R

Rod Early

I am looking for a way to hide a form's title bar. My application
displays a "wait" graphic in a form while it loads and also while it
executes long-running activities.

I have tried doing the standard removing of the border, sett the title
to blank, and turning off the control boxes. But the title bar is
still there though blank.

I have read the following piece of a post (from Chris Tacke) -
"maximize the form, remove the border and turn off the control boxes.
Just like a desktop app."

The thing is, I don't want to maximize the form -- it's a small form
that shows a graphic. (No, the hourglass cursor won't do ;-) My
client likes fancy graphics.)

Can I hide the title bar in a non-maximized window? Can this be done
in Compact Frameworks?

Thanks,
Rod
 
If it's not a Pocket PC device you can try to play with windows styles bits
by removing WS_CAPTION.
Take a look at the WindowHelper class in SDF, specifically UpdateWindowStyle
method.
 
Back
Top