|
-
Aug 28th, 2012, 08:30 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] VB6 - Check if a line (graphic) exists
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 .
When I resize the form I call again to the function to add lines in the picturebox.
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|