|
-
August 1st, 2006, 07:48 AM
#1
Drawing on Mouse Click
Im developing a project with .Net framework 1.1 using VB.Net.
During runtime, on mouse click or mouse down event of the label1 i want to draw cross lines over the label1. I have tried with drawing2d to draw lines, but i want to handle that paint event of label1 during the mouse down or mouse click event. The function is given below to draw lines simply. But i have to draw the lines on the label.
Private Sub Label1_Click(ByVal sender As Object, ByVal e As System. EventArgs) Handles Label1.Click
Draw(da)
End Sub
Private Sub Draw(ByVal e As PaintEventArgs)
e.Graphics.DrawLine(Pens.Black, New Point(10, 10), New Point(100, 50))
End Sub
Please can anyone help me out to solve this problem. Thanks in Advance
Regards
Mukil
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|