G
Guest
I have a PictureBox, between a couple of other controls, in which I use the
DrawLine() function to show links between the controls. There are splitter
bars to either side of the PictureBox to allow it's width to be changed. If
the width is increased, I recalculate the new X-value for the endpoint as I
want the line to be the full width of the PictureBox. Unfortunately, the
X-value I end up with is the same as the width of the PictureBox before it is
resized, rather than after it's resized. Under what event do I need to place
my code to calculate the desired X-value?
Thanks for all your help!
Allen
DrawLine() function to show links between the controls. There are splitter
bars to either side of the PictureBox to allow it's width to be changed. If
the width is increased, I recalculate the new X-value for the endpoint as I
want the line to be the full width of the PictureBox. Unfortunately, the
X-value I end up with is the same as the width of the PictureBox before it is
resized, rather than after it's resized. Under what event do I need to place
my code to calculate the desired X-value?
Thanks for all your help!
Allen