views:

144

answers:

2

How can I apply a horizontal scroll bar to a Panel?

I'm working on 2d tiled map editor and I'm using a Panel to hold the contents. When my map is bigger than my panel it just goes off and becomes invisible, would it be possible to apply custom scroll bars?

Edit:
Its for Windows forms application project.

+2  A: 

Set the ScrollBars property to ScrollBars.Horizontal.

sgriffinusa
A: 

The Panel is derived from ScrollableControl. So there is a property AutoScroll. Just set it to true and the rest will be done automagically.

Oliver