Click here to Skip to main content
15,916,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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[^]
Posted

1 solution

C#
myGridView.ScrollBars = ScrollBars.Both;


I think this might also work:

C#
myGridView.ScrollBars = ScrollBars.Auto;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900