Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / January 2005

Tip: Looking for answers? Try searching our database.

Scrollable groupbox?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WWalden - 19 Jan 2005 16:09 GMT
I am trying to create a GroupBox control with support for scrolling the inner
content and nicer looking borders. How do I go about positioning the
scrollbars so that they are inside of my drawn borders?

I am attempting to add a child Panel control at design time (from code is a
custom designer class) that will be the drop-point for child controls. I am
running into serialization issues now since the inner Panel is only created
at design-time. It's not getting set into the parent control properly, and I
don't know how to fix it.

Another thing I have tried is to use the Win32 API to manage the scrollable
portion (SetScrollInfo, ScrollWindowEx, etc..), but the painting of the
border gets messed up by the clipping rectangle of the scrolling region. If
anyone has any tips for implementing this, it might help as well.

Thanks.
joeycalisay - 20 Jan 2005 06:20 GMT
Any reasons why you need such control if Panel is already a
ScrollableContainer?  Besides, if you only want to modify the borders, you
can customize your border with the .NET panel by processing your own
WM_NCPAINT message.

Signature

Joey Calisay
http://spaces.msn.com/members/joeycalisay/

> I am trying to create a GroupBox control with support for scrolling the inner
> content and nicer looking borders. How do I go about positioning the
[quoted text clipped - 12 lines]
>
> Thanks.
WWalden - 20 Jan 2005 12:49 GMT
Thanks for the reply. My reasoning is simply that I am trying to create a
high quality control. My borders can use several styles, thicknesses, etc.
Processing WM_NCPAINT draws the border, but the scrollbars and controls get
painted over it.

I know I could tell end developers to add a scrollable panel and set the
DockStyle to Fill, but I want to be able to offer a scrolling container out
of the box. I also wanted to implement more complex scrolling options.

> Any reasons why you need such control if Panel is already a
> ScrollableContainer?  Besides, if you only want to modify the borders, you
[quoted text clipped - 24 lines]
> >
> > Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.