basically I am trying to expand my skills in visual basic 2010 and i want to find out how to make a kind of drawing program.
The idea is when you click somewhere on the form a bit of dirt will appear at the location of the mouse.
This code that I wrote did not seem to work:
The idea is when you click somewhere on the form a bit of dirt will appear at the location of the mouse.
This code that I wrote did not seem to work:
VB.NET:
Public Class city
Private Sub city_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Click
Dim dirt As New PictureBox
dirt.Show()
dirt.Image = My.Resources.dirt
dirt.Location = New Point(MousePosition)
dirt.Size = New Size(100, 100)
End Sub
End Class