I am having an issue with the picturebox control in VB6 that has me stumped. I am using the control on a form to draw a bell curve and plot data along the curve. The image draws correctly in the box and is centered but when I print the form, the curve is off-center in the box and parts end up outside the picturebox.
The calling code used to plot the curve is:
frmin.picView.Scale (450, 8)-(550, 0)
DrawPlot frmin, NormalPlotArray(), False
The code that draws the curve is:
Sub DrawPlot(frmIn as form, Arry, C)
Clr = IIf(C, RGB(255, 0, 0), RGB(0, 0, 255))
frmin.picView.Line (0#, 0#)-(0#, 0#)
For j = 450 To 550
frmin.picView.Line -(j, Arry(j)), Clr
And the plotting code is called a second time with the data in an array to plot along the curve.
In order to print, I am using the PrintForm command.
Any ideas how I can get the picturebox to print the plotted image in the center of the box?