looks like that code should fill a 20 x 20 grid with squares.
Are you just trying to get a background pattern? that would be easier with grids, which are built into GoView.
myView.Background = Color.LightBlue;
myView.GridStyle = GoViewGridStyle.Line;
myView.GridCellSize = new SizeF (20,20);
will look like this:
(note the settings in the property grid. I set this up without writing any code. NodeLinkDemo makes it easy to play with options like this. Just pick “View” at the top of the property grid.)
Also, have you tried stepping through your code? Take a look at what happens to the value of the “j” variable after the first iteration of the “i” variable.