Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

custom borderstyle painting possible?
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


Report this thread to moderator Post Follow-up to this message
Old Post
samjost@web.de
05-11-05 01:57 PM


Re: custom borderstyle painting possible?
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.


Report this thread to moderator Post Follow-up to this message
Old Post
blesh
05-17-05 01:58 AM


Re: custom borderstyle painting possible?
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.


Report this thread to moderator Post Follow-up to this message
Old Post
blesh
05-18-05 01:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

C# archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:32 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.