How do you handle clipped content in custom user control?

G

Guest

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
 
B

Basil Abusamrah

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
 
G

Guest

Oh I'm terribly sorry I forgot to mention this is in a GUI application now
web browser, sorry....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top