How to draw image on form's title bar?

  • Thread starter Thread starter Amar Ingole
  • Start date Start date
A

Amar Ingole

Hi ..

I wanted to repace form's default title bar with new One.
So Can I draw Image on title bar.

Pleae help

Amar
 
You can draw directly on the form's title bar by handling the WM_NCPAINT
message in a custom WndProc override. This does not necessarily involve
interop as another poster has suggested.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Ooops, sorry about the misconception. I got confused with my previous
encounter on this non-client painting which involved custom border painting
obtaining graphic objects on WndProc using interop and custom region
handling...

Sorry Mr. Powell...
 
Back
Top