L
Lance
I am looking for some advice for binding properties of
multiple objects that are NOT inherited from
Windows.Forms.Control.
I have a set of PictureBoxes that contain shapes. The
number of PictureBoxes is determined by the user at
runtime. Each PictureBox contains a collection of shapes
that are created and manipulated interactively by the
user. Each shape will always have a corresponding shape
in each of the PictureBoxes. For example, if the user
creates a new line in one of the PicutreBoxes, then a line
will automatically be created in each of the other
PictureBoxes.
What I need to do is make it so that all corresponding
shapes are updated whenever one of the shapes is
modified. For example, lets say the user has created 3
PictureBoxes (PictureBox1, PictureBox2, and PictureBox3)
and that each PictureBox contains 2 Lines (Line1 and
Line2). Now lets say the user moves the StartPoint of
Line2 in PictureBox3 with the mouse. This will cause the
StartPointChanged event to be fired. What I need to do is
update Line2 in PictureBox1 and PictureBox2 so that the
StartPoint property of Line2 is the same in all of the
PictureBoxes.
Does .NET provide any tools for handling this type of
behavior?
Thanks,
Lance
multiple objects that are NOT inherited from
Windows.Forms.Control.
I have a set of PictureBoxes that contain shapes. The
number of PictureBoxes is determined by the user at
runtime. Each PictureBox contains a collection of shapes
that are created and manipulated interactively by the
user. Each shape will always have a corresponding shape
in each of the PictureBoxes. For example, if the user
creates a new line in one of the PicutreBoxes, then a line
will automatically be created in each of the other
PictureBoxes.
What I need to do is make it so that all corresponding
shapes are updated whenever one of the shapes is
modified. For example, lets say the user has created 3
PictureBoxes (PictureBox1, PictureBox2, and PictureBox3)
and that each PictureBox contains 2 Lines (Line1 and
Line2). Now lets say the user moves the StartPoint of
Line2 in PictureBox3 with the mouse. This will cause the
StartPointChanged event to be fired. What I need to do is
update Line2 in PictureBox1 and PictureBox2 so that the
StartPoint property of Line2 is the same in all of the
PictureBoxes.
Does .NET provide any tools for handling this type of
behavior?
Thanks,
Lance