I have a sub
CODE
Private Sub drawme(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs)
Dim img As Image
img = System.Drawing.Image.FromFile("F:\Dads Work\Project Pictures\cross.bmp")
e.Graphics.DrawImage(img, 0, 0, 25, 25)
End Sub
but when I try to call it by typing
CODE
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
drawme()
End Sub
I get the error
argument not specified for parameter 'e' of 'private sub' drawme (sender as object, e as system.windows.forms.painteventarges)
*edit*
I have read the documentation and searched on google, but I have not found code that actually calls system.drawing
I have found code where they draw the picture first thing, but never found code where it was drawn when a button is pressed
*/edit*
*edit2*
I have tried doing drawme(sender, e) But i know that wont work because I am sending a mouse event arg to a
graphic arg
*/edit3*
thanks in advance for your help
This post has been edited by s_jsstevens: 6 Dec, 2007 - 08:50 AM