scrollbars in windows.form

I have an application that displays a TableLayoutPanel containing a number of pictureboxes containing thumbnails. I am wondering; When i load this table with, say 100 thumbnails, how do i produce scrollbars so that all of the table can be viewed

Another question: I would like to be able to "select" a thumbnail by clicking on its image (perhaps putting a border on the picturebox). Is there a way of handling this (would be a little bit hard to keep track of Click events). Or should i use something else than pictureboxes in a table

regards, Kristian



Answer this question

scrollbars in windows.form

  • Anand Raman - MSFT

    Ok to produce scrollbars in your table, place the table data in an iframe, then set iframe attribute to scrollable=yes.
  • coefficientX

    for your first question, I have not used the Control before so I'm just going by what I can see in the properties/code.

    have you tried:

    theTableLayoutPanel.VerticalScroll.Visible = true;

    theTableLayoutPanel.HorizontalScroll.Visible = true;

    does this work for you



  • Rajesh batchu

    I solved my second problem by an eventhandler. For the first problem; I was thinking maybe i could put my table inside some control that have scrolling capabilities. perhaps a panel. i will try that

  • scrollbars in windows.form