For Programmers: Free Programming Magazines  


Home > Archive > C# > May 2005 > custom borderstyle painting possible?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author custom borderstyle painting possible?
samjost@web.de

2005-05-11, 8:57 am

Hi!

I got a resizeable window (windows forms), and I'd like to paint the
borders myself but keep the resizable borders working.

Now I could set the borderstyle to none and do all the work (changing
cursor when over border, resizing in different directions regarding
where one clicks and moves), but I'd be rather happy if there would be
a way just to change how the border looks but keep windows doing the
work.

Is there a way to change the looks of the resizable border without
changing the feel?

Thanks,
Sam

blesh

2005-05-16, 8:58 pm

You need to override the WndProc() method of your control and handle
the NC_PAINT method. There should be more than enough out there for you
to figure it out. Just Google up "WndProc NC_PAINT C#" Or something
like that... you'll find what you're looking for.

blesh

2005-05-18, 8:57 am

You need to override the WndProc() method of your control and handle
the NC_PAINT method. There should be more than enough out there for you
to figure it out. Just Google up "WndProc NC_PAINT C#" Or something
like that... you'll find what you're looking for.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com