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

WinForm margin borders problem
Hi. I am trying to implement my user control which inherits
Windows.Forms and I want to make it skinnable. So I use
BorderStyle.None on the form and I will draw the borders and title
bar. But in this case if I add menu it must be offseted from the top
by the height of my skinnable title bar. How can I achieve that.
How I can set som borders of the form where all the controls can be
drawned and the rest I will draw myself( ie the borders and title
bar). I tried to set the DockPadding.Top property to 20 for example
but the menu is not padded. It seems that it is not docked to the top
of the form , but it uses some other way to bound to the top. Can I
make the menu to appear for example 20 pixels padded from the top?

Thanks in advance.

Report this thread to moderator Post Follow-up to this message
Old Post
RawSteel
08-21-04 09:01 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 04:40 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.