.net sukbir

Dear All,

I have a sample windows form which I saw on this link http://www.codeproject.com/csharp/printtoprinter.asp. I am interested to do the same can some one please give me some hint on how this type of design can be achieved I know for sure I have tried to change the formborderstyle it cant be changed to something custom made Any ideas please .



Re: Windows Forms Designer Custom Form Desinging

Aleksey Nagoga.

I think it was done using a custom windows theme.




Re: Windows Forms Designer Custom Form Desinging

.net sukbir

Dear Aleskey,

Do you have any idea how can I do it for my form please Thanks.





Re: Windows Forms Designer Custom Form Desinging

Aleksey Nagoga.

You need to intercept WM_PAINT message using OnPaint method.

here's another thread on this subject:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=560098&SiteID=1





Re: Windows Forms Designer Custom Form Desinging

.net sukbir

Dear Aleskey,

I went to that post and use the link Shaped Windows Forms and Controls in Visual Studio .NET but the link is not found Any other place of references please Thanks.





Re: Windows Forms Designer Custom Form Desinging

Mick Doherty

I suspect that what you've seen is not a Custom form, but a standard form on a Skinned Windows.

http://www.stardock.com/products/windowblinds/

Whilst it is possible to do what you want, it is not something that is done easily, unless you're prepared to pay for a library which will do it for you.

http://www.stardock.com/products/directskin/

http://skincrafter.com/skincrafter.html

If you want to do it yourself, then be prepared for a lot of work.

One method is to set the forms FormBorderStyle to None and then simply add controls that look and act like TitleBars and edges, or else paint the TitleBars and edges and react to mouse events.

http://www.dotnetrix.co.uk/misc.html

Another method involves intercepting and modifying the forms WM_NCPAINT messages.

http://geekswithblogs.net/kobush/articles/CustomBorderForms.aspx




Re: Windows Forms Designer Custom Form Desinging

HawVer

This article on custom form painting might be interesting as well.

http://www.codeproject.com/cs/miscctrl/GoogleTalkWindowsForm.asp