I'm writting a code to create a grid inside the picturebox http://dret.net/lectures/web-spring09/img/grid.png
I want to check if a line has been already drawn.
I create a line called Line1(0). Then the program executes the funcion.Code:Load Line1(x)
When I resize the form I call again to the functionto add lines in the picturebox.Code:Load Line1(x)
If I charge the line1(2) twice the programs shows the next error: "The object has been already charged".
I want to know 2 things:
A) How the program can knows if a line exists to prevent to charge it again
B) What I've to write to remove a line from the picturebox. If Load Line1(X) is to create, what is the opposite function that removes a specific line?


Reply With Quote
