2013-07-23 19 views
0

我必須在下面的紅色框中至少放入30個按鈕,而不必拉伸表格大小。 (按鈕是由數組生成的)使表格可滾動的某些部分

我的問題是......有沒有辦法讓窗體的某個部分能夠滾動。如果沒有,是僅列表視圖還是列表框選項?

enter image description here

回答

1

添加所有的按鈕在FlowLayoutPanel的, 用的FlowDirection =自上而下和自動滾動=真

0

嘗試:可滾動區域的

組期望的高度和寬度。

<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>