Winforms do not support that. The close thing you could do
is go borderless on the form and make up your own minimize,
maximize, and close buttons.

Signature
Robbe Morris
EggHeadCafe.com
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp
> Does any body knows how can I customize winform's title bar to add
> some controls. For example, I need to add a text box and a button.
>
> Thanks.
RickL - 26 Jun 2007 13:54 GMT
Robbe,
When I create a borderless form and run the application, the task bar
icon has no text. Normally, it would display the titlebar text.
Is there a way to overcome this problem?
Thanks,
RickL
> Winforms do not support that. The close thing you could do
> is go borderless on the form and make up your own minimize,
[quoted text clipped - 4 lines]
>>
>> Thanks.
Mick Doherty - 26 Jun 2007 15:52 GMT
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1763858&SiteID=1

Signature
Mick Doherty
http://www.dotnetrix.co.uk/nothing.html
> Robbe,
>
[quoted text clipped - 14 lines]
>>>
>>> Thanks.
You can override WndProc to catch the various WM_NCxxx messages to draw
custom controls, handle clicks and such.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
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.
> Does any body knows how can I customize winform's title bar to add
> some controls. For example, I need to add a text box and a button.
>
> Thanks.
KK - 27 Jun 2007 22:58 GMT
hi bob,
thats an interesting suggestion.
actually, now there is a big community of developers who is working on .NET
and C# (properly) but which will not have any background in MFC or Win32!
can you PLEASE provide ANY example on what can be achieved by WndProc or
CreateParameters etc.
I know its kinda too much to ask for code samples, but still, if you can
provide some expert snippets, would help the community a lot.
> You can override WndProc to catch the various WM_NCxxx messages to draw
> custom controls, handle clicks and such.
[quoted text clipped - 3 lines]
>>
>> Thanks.
Mick Doherty - 28 Jun 2007 14:32 GMT
A C# example:
http://geekswithblogs.net/kobush/articles/CustomBorderForms.aspx
An older MFC example:
http://www.catch22.net/tuts/titlebar.asp

Signature
Mick Doherty
http://www.dotnetrix.co.uk/nothing.html
> hi bob,
>
[quoted text clipped - 17 lines]
>>>
>>> Thanks.
B. - 19 Jul 2007 20:28 GMT
I went throught all those posts/examples, most of them are talking
about paint the title bar programmatcially. It is easier for a button,
but how about a text box or richedit box, how can such control takes
users input of text?
Thanks.
B. - 19 Jul 2007 21:28 GMT
Hi Bob,
Can I paint a textbox or richedit box and still allow user to type in?
Thanks.
On Jun 27, 12:10 pm, "Bob Powell [MVP]"
<bob@_spamkiller_bobpowell.net> wrote:
> You can override WndProc to catch the various WM_NCxxx messages to draw
> custom controls, handle clicks and such.
[quoted text clipped - 18 lines]
>
> - Show quoted text -
B. - 23 Jul 2007 21:07 GMT
Hi Bob,
How do you draw controls like text box, richedit box and still allow
user type in text? Thanks.
On Jun 27, 12:10 pm, "Bob Powell [MVP]"
<bob@_spamkiller_bobpowell.net> wrote:
> You can override WndProc to catch the various WM_NCxxx messages to draw
> custom controls, handle clicks and such.
[quoted text clipped - 18 lines]
>
> - Show quoted text -