Ok major problem with a paint program i am making. When i have a window overlap or anything and move to side of screen and minimize and maximize i lose whats in the picturebox...
Here is an example of the code I use to draw a line after click a button:
Here is a picture of my program running:
How do I stop everything being deleted when things pass it...?
Also not very important right now but how can i add a save feature to this program?
Here is an example of the code I use to draw a line after click a button:
VB.NET:
Private Sub btndraw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnlinedraw.Click
lxs = txtslinelocationx.Text
lxe = txtelinelocationx.Text
lys = txtslinelocationy.Text
lye = txtelinelocationy.Text
PictureBox1.CreateGraphics.DrawLine(drawingpen, lxs, lys, lxe, lye)
End Sub
Here is a picture of my program running:
How do I stop everything being deleted when things pass it...?
Also not very important right now but how can i add a save feature to this program?