My solution was to use a picturebox to contain the graph (which is a copy->pasted picture) and the text--the picturebox also allowed me to add scrollbars to the default VB form. This code works perfectly until I try to print the data from more than 4 graphs at once, any more than 4 graphs and the program crashes with a "runtime error 6: Overflow" error. I thought I might be overflowing my picturebox, so I created several pictureboxes and intended to stack the pictureboxes end-to-end at runtime and activate each picturebox as I print to it, like this:
Private Sub Form_Load() Dim x As Integer For x = 0 To 7 frmGraphs.picCanvas(x).Top = x * 4* 7200 frmGraphs.picCanvas(x).Visible = False Next End Sub
However, I discovered that as soon as I tried to place my second picturebox (ie, the picturebox that would hold the 5th graph) my program errored out again. I now realize that I am actually overflowing my form's maximum size.
My limited experience has me struggling to find an alternative option. Is there a modified VB form I can use instead of the default that is larger? Can I modify the form object myself? Am I missing something obvious that I could be using instead? I tried using richtextbox, listfield/listview, I've also looked at a PDF module that will open a pdf within the program, but it will only accept .jpg pictures and since I am copy/pasting my pictures they are .bmp and I want to avoid converting them.
Any help is greatly appreciated. Thanks in advance.