Set a PictureBox's Scale properties so the values range from 0 to the number of histogram values horizontally and from 0 to the maximum data value vertically. Then for the ith bar, draw a box from (i - 1, 0) to (i, data_value(i)).