sayhaha
sayhaha

Reputation: 789

Make certain part of form scrollable

I have to fit in at least 30 buttons in the red box below without stretching the form size. (Buttons are generated by array)

My question is... is there a way to make the certain part of the form scroll-able. If not, is listview or list box only option?

enter image description here

Upvotes: 0

Views: 82

Answers (3)

tariq
tariq

Reputation: 2258

try this:

set desired height and width of the scrollable area.

<div style="height: 500px; width: 400px; overflow: scroll;">

<%--Add your buttons inside this div, you may give an id to this div and make it runat server--%>

</div>

Upvotes: 0

Niranjan Reddy
Niranjan Reddy

Reputation: 94

Add all the buttons in a FlowLayoutPanel, with FlowDirection=TopDown and AutoScroll=true

Upvotes: 1

SLaks
SLaks

Reputation: 888177

Put them in a Panel control, then set AutoScroll to true.

Upvotes: 3

Related Questions