path

miss rene

New member
Joined
Jan 29, 2009
Messages
2
Programming Experience
Beginner
Hi,

I created a user control that is made up of lines (path). When the user click on the path, a larger image of that particular path will appear.

Below is the coding I'd done:

Dim rectangle As New UserControl1

Private Sub path1_MouseLeftButtonDown(ByVal sender As System.Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles Me.MouseLeftButtonDown

canvasTest.Children.Add(rectangle)

End Sub

But when I click on the path the second time, the application will stop running. Anyone know why is it so...? And is there any solution to it...?

Thanks
 
Back
Top