how to create "scrollable" control

  • Thread starter Thread starter Bad_Kid
  • Start date Start date
B

Bad_Kid

myForm is 500x400 px and it has panel1 control which is 4000x200 px!!
how can I create scrollbar on a panel1 so it's contents may be scrolled left
and right?
(c++.net)
 
PS - These exist for Panel too:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.panel_members.aspx

[==P==]

Peter Oliphant said:
Look at all the properties for Form that begin with 'AutoScroll 'on this
page:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.form_members.aspx

That should get you started... : )

[==P==]

Bad_Kid said:
myForm is 500x400 px and it has panel1 control which is 4000x200 px!!
how can I create scrollbar on a panel1 so it's contents may be scrolled
left
and right?
(c++.net)
 
Also look at HorizontalScroll and VerticalScroll properties:

http://msdn2.microsoft.com/en-us/li...forms.scrollablecontrol.horizontalscroll.aspx
http://msdn2.microsoft.com/en-us/library/system.windows.forms.scrollablecontrol.verticalscroll.aspx

And there are also protected methods and an event associated with scrolling.
In short, you basically have complete control of scrollability (is that a
word?)... : )

[==P==]

Peter Oliphant said:
PS - These exist for Panel too:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.panel_members.aspx

[==P==]

Peter Oliphant said:
Look at all the properties for Form that begin with 'AutoScroll 'on this
page:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.form_members.aspx

That should get you started... : )

[==P==]

Bad_Kid said:
myForm is 500x400 px and it has panel1 control which is 4000x200 px!!
how can I create scrollbar on a panel1 so it's contents may be scrolled
left
and right?
(c++.net)
 
Back
Top