found this little snippet of code here, and I have been trying to tweak it a bit. First off, i will tell you this code draws an image wherever I click. But the problem for me is, when I click on different location it removes the previous image.
AKA: If I click 4 different places on the form, I want 4 images on the form.
Thank you in advance for your time
CODE
Partial Public Class MainForm
Private drawimage As Boolean
Dim x As Integer = 0
Dim y As Integer = 0
Public Sub New()
Me.InitializeComponent()
End Sub
Private Sub MainForm_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown
If ((e.X > 100) And (e.Y > 100)) Then
drawimage = True
Else
drawimage = False
End If
Me.Invalidate()
x = e.X
y = e.Y
End Sub
Protected Overloads Overrides Sub OnPaint(ByVal e As PaintEventArgs)
MyBase.OnPaint(e)
If drawimage Then
e.Graphics.DrawImage(System.Drawing.Image.FromFile("f:\Dads Work\Project Pictures\cross.bmp"), x, y)
End If
End Sub
End Class