I am currently placing a "+" sign on a picture previously loaded in a
PictureBox by coding these below in an OnMouseDown event.
System.Drawing.Graphics formGraphics = PictureBox.CreateGraphics ( );
string drawString = "+";
System.Drawing.Font drawFont = new System.Drawing.Font("Arial", 16);
System.Drawing.SolidBrush drawBrush = new
System.Drawing.SolidBrush(System.Drawing.Color.Bla ck);
float x = e.X - 10;
float y = e.Y - 10;
formGraphics.DrawString(drawString, drawFont, drawBrush, x, y);
drawFont.Dispose();
drawBrush.Dispose();
formGraphics.Dispose();
isPlacing = false;
PictureBox.Cursor = Cursors.Default;
PlaceObjButton.Enabled = false;
Up to this point everything is fine. But when I bring another running window
front and then return my software back I see that the mark is gone. How can I
keep the mark until I want to delete it?
--
Utku Ozan ÇANKAYA