Is there a quick way to draw a multidimension array of integers onto a picturebox in text. Like draw the text?
Printable View
Is there a quick way to draw a multidimension array of integers onto a picturebox in text. Like draw the text?
I havent tested this but I think its along the right lines...
VB Code:
Sub DrawMultiArray() dim i, j as integer dim gx as graphics = myPicBox.CreateGraphics() for i = 0 to 100 for j = 0 to 100 gx.DrawString(MyArray(i,j).ToString(), new Drawing.Font("Courier New", 12), Brushes.Black, PointF((10 * j), (10 * i))); next j next i End Sub
You'll have to alter the 0 to 100 values and (10 * i) and a few other bits maybe. Its not optimised either but thats not hard.
ty!