P
Peter
Hi,
I remember in VB6 that one could simply draw a line in a picturebox using
the .Line method. There is no equivalent in .NET; everything I read says it
is necessary to do lots of heavily complicated things to get it to happen.
My question is, most of those new methods (the ones that take 25 lines of
code) require that the drawing takes place in the OnPaint event of the
picture box. This seems to imply that whatever is drawn in there must remain
static for the whole program. How can one dynamically change, add, and erase
lines, circles, and so forth during runtime?
I remember in VB6 that one could simply draw a line in a picturebox using
the .Line method. There is no equivalent in .NET; everything I read says it
is necessary to do lots of heavily complicated things to get it to happen.
My question is, most of those new methods (the ones that take 25 lines of
code) require that the drawing takes place in the OnPaint event of the
picture box. This seems to imply that whatever is drawn in there must remain
static for the whole program. How can one dynamically change, add, and erase
lines, circles, and so forth during runtime?