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 / Languages / C# / October 2006

Tip: Looking for answers? Try searching our database.

How do you handle clipped content in custom user control?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MrNobody - 31 Oct 2006 14:47 GMT
IF I am making a custom user control which draws stuff that might exceed its
boundaries, can I get the user control to handle the scrolling for me? The
AutoScroll property doesn't seem to be doing it. Do I have to set some
special Size so it knows it's supposed to scroll?

Currently by default behavior it is just clipping my content and not putting
any scrollbar.

and if I can somehow get the user control to add the scrollbar how can I get
the scrollbar position so I know how to adjust positions for mouse movement
events
Basil Abusamrah - 31 Oct 2006 18:47 GMT
MrNobody,

I'm unsure if this will work, as I've never tested it, but try giving
that custom user control a CSS class (or wrapping a div around it) and
set overflow:scroll;

Hope that helps, Basil

> IF I am making a custom user control which draws stuff that might exceed its
> boundaries, can I get the user control to handle the scrolling for me? The
[quoted text clipped - 7 lines]
> the scrollbar position so I know how to adjust positions for mouse movement
> events
MrNobody - 31 Oct 2006 19:10 GMT
Oh I'm terribly sorry I forgot to mention this is in a GUI application now
web browser, sorry....

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.