How to draw image on form's title bar?

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
 
B

Bob Powell [MVP]

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.
 
J

joeycalisay

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...
 

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