And you also need to create a mouse move handler and call pictureBox1.Invalidate(); so that your drawing feedback is immediate. – Paul Sasik Nov 15 '10 at 18:45.
You need to draw each line on the Image object (using Graphics. FromImage) after creating the line. You also need to dispose the Graphics object in a using block.
Have I not done the graphics. Fromimage in my code, or have I written that wrong? Also where do I need to dispose the graphics in my code?
– Chris Bacon Nov 15 '10 at 18:26 You should dispose the graphics after you finish with it. You shouldn't draw on the image in the paint event; you should draw it once in advance. You'll probably also need to Refresh() the PictureBox.
If you want to do it your way, you should draw directly on a Panel (in the Paint event) without a PictureBox or Bitmap. – SLaks Nov 15 '10 at 18:33 The problem is I need to do it on a picturebox, so I need to make it work on that. Also where exactly in my current code should I put the picturebox1.refresh() & picturebox1.dispose()?
Thanks – Chris Bacon Nov 15 '10 at 18:40 Why do you need to use a PictureBox? Also, do not dispose the PictureBox. – SLaks Nov 15 '10 at 18:43 You just need to use the Graphics object passed to you in the paint handler.
You don't need to create or dispose of one created in the paint handler. – Paul Sasik Nov 15 '10 at 18:44.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.