Image in Winform Header?

  • Thread starter Thread starter mCompany
  • Start date Start date
M

mCompany

Is there a way to put a "background" image in the header of a winform?

Thanks!
 
What do you mean by the "header of a winform"?

If you're referring to the title bar, then it's possible but messy...
you'd have to override WM_NCPAINT, which requires you to draw *all*
non-client areas (title bar, icon, minimize/maximize/close buttons, and
all resize borders). And Windows will sometimes randomly repaint parts
of the title bar without notifying you. Not for the faint of heart.
 

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

Back
Top