Customize Title Bar - B.

25-Jun-07 04:10:11
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.
reply
 
 

Customize Title Bar - Robbe Morris - MVP C#

25-Jun-07 10:14:48
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.

--
Robbe Morris
EggHeadCafe.com
http://www.eggheadcafe.com/articles/adonet_source_code_generator.asp
reply
 

Customize Title Bar - RickL

26-Jun-07 08:54:14
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
reply
 

Customize Title Bar - Mick Doherty

26-Jun-07 10:52:03
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1763858&SiteID=1

--
Mick Doherty
http://www.dotnetrix.co.uk/nothing.html
reply
 

Customize Title Bar - Bob Powell [MVP]

27-Jun-07 03:10:22
You can override WndProc to catch the various WM_NCxxx messages to draw
custom controls, handle clicks and such.


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

Customize Title Bar - KK

27-Jun-07 06:08:11
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.
reply
 

Customize Title Bar - Mick Doherty

28-Jun-07 09:32:26
A C# example:
http://geekswithblogs.net/kobush/articles/CustomBorderForms.aspx

An older MFC example:
http://www.catch22.net/tuts/titlebar.asp

--
Mick Doherty
http://www.dotnetrix.co.uk/nothing.html
reply
 

Customize Title Bar - B.

19-Jul-07 03:28:56
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.
reply
 

Customize Title Bar - B.

19-Jul-07 04:28:35
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]"
reply
 

Customize Title Bar - B.

23-Jul-07 04:07:32
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]"
reply
 
Google-like sidebar in C#. Are there any controls? Please help
promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   

"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class