如何将滚动条添加到面板控件或gridview控件与2010

问题描述:

如何在windowsform vs 2010中为面板添加滚动条。

i需要一个控件,当我添加项目时,它的滚动条出现。

i通过gridview完成了这项工作。当我用sql显示表时,它工作正常。但我不能通过添加像按钮这样的对象来做到这一点。

这是我的表格

http://upload7.ir/images/45513215177989476422.jpg [ ^ ]

how add scroll bar for a panel in windowsform vs 2010.
i need a control when i add item to that its scrollbar appears.
i did this work by gridview .it works right when i show a table into that with sql. but i am Not able to do that by adding a object like button .
this is my form
http://upload7.ir/images/45513215177989476422.jpg[^]

myGridView.ScrollBars = ScrollBars.Both;





我认为这也可行:





I think this might also work:

myGridView.ScrollBars = ScrollBars.Auto;