469,287 Members | 2,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

Creating a UserControl that is bigger than the space it has in it'swindow

Hi guys,

Using C# and Visual Studio 2003, I want to build a control that contains
a large square area for visual display of some data that will most
likely not fit on a normal PC screen (perhaps 4000x1000 pixels on
average, some times larger, some times smaller). The data displayed is
not something that needs to be seen all at once, and the users will
expect to do a little scrolling.

This visual display will be put into a normal Windows Form, with a panel
with some controls docked to the top, a status bar docked to the bottom,
and my new control set to Dock/Fill.

Now, naturally, if we say that the graphics area of my display is
4000x1000, and the control rectangle is only 400x100, scrollbars should
automatically appear. If someone has a screen that is big enough, the
whole visual area should show up at once. To complicate matters, there
are two static areas inside the control that should always be visible -
an icon list to the left that will scroll with the rest up and down, but
always remain on the left side, and a time reference on the top that
will scroll horizontally with the data but always remain on the top.

If this isn't impossible to understand - does someone know the best way
to implement this? Should I just subclass UserControl and add some
scroll bars manually and do everything myself, or is there something
else that would do most of the work for me (apart from repainting the
visual layout of course)?

Thanks for any help!

Rune Jacobsen
Jul 13 '06 #1
0 890

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.