Hi Buddy,
see my small example,
Public Sub myPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
e.Graphics.DrawString(" MichaelAyvazyan", Font, New SolidBrush(Color.Beige), 100, 100)
End Sub
Here one userdefined Method,
I need to call this method in Button Cliclk event,
Means when i click button the string "MichaelAyvazyan" display the position
Now my doubt is , How can i pass parameter "e" in button click Event
In button click event
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
myPaint( ? )
End Sub
Any Idea