DrawImage question [RESOLVED]
Hi Everybody,
I have an form (frmMain) with an picturebox (pctMap) on wich I draw an image (pctPion.Image). I'm using this to draw the Pion on the Map:
VB Code:
Dim gr As Graphics = pctMap.CreateGraphics
gr.DrawImage(pctPion.Image, 42, 42)
But this can only be done in the frmMain code... I've got an class Map wich should do this... How can this be solved? Is it an design error by me :confused:!
Extra question: instead of pctPion.Image i would like to use an filename is this possible cause when I try that I get an error?!
Thnx in advance,
Bloged