如何将滚动条添加到面板控件或gridview控件与2010 [英] how add a scrollbar to panel control or gridview control vs 2010
本文介绍了如何将滚动条添加到面板控件或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;
这篇关于如何将滚动条添加到面板控件或gridview控件与2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文