P
Peter Lux
I have a structure called Stitch that has an x,y coordinate, a maincolor mc
and a secondary color, sc. I want to render these @ the x,y coordinate. I've
already done that without it being in a structure.
Public Structure Stitch
Public x As Integer
Public y As Integer
Public mc As System.Drawing.Color
Public sc As System.Drawing.Color
End Structure
What I want to do is create some sort of linked list (or array?) or some way
of collecting all the Stitches together. How do I do that? Create an array
of Stitch? Add an extra data item in the Stitch structure and keep track of
it programmatically? 'Stitch's will be added each time the user clicks in a
grid in a picture box.
I haven't worked much in VB - mostly database stuff - not drawing so I
wasn't sure if structure or class would be most appropriate.
Someone suggested a custom collection by "You should subclass the abstract
CollectionBase class which exists for people who want to implement a stongly
typed collection. " but how do you do this??
and a secondary color, sc. I want to render these @ the x,y coordinate. I've
already done that without it being in a structure.
Public Structure Stitch
Public x As Integer
Public y As Integer
Public mc As System.Drawing.Color
Public sc As System.Drawing.Color
End Structure
What I want to do is create some sort of linked list (or array?) or some way
of collecting all the Stitches together. How do I do that? Create an array
of Stitch? Add an extra data item in the Stitch structure and keep track of
it programmatically? 'Stitch's will be added each time the user clicks in a
grid in a picture box.
I haven't worked much in VB - mostly database stuff - not drawing so I
wasn't sure if structure or class would be most appropriate.
Someone suggested a custom collection by "You should subclass the abstract
CollectionBase class which exists for people who want to implement a stongly
typed collection. " but how do you do this??