Trying to set a pixel in a picturebox with out any luck.
Please look at the code and tell me what is missing.
If I set the 'bmTemp' to the image of the picturebox, why would I want an new instance as the error message suggests ? The picture box is empty, but does that mean is has no image at all ?
Public Sub DrawAPixel(ByVal x As Integer, ByVal y As Integer, ByVal clr As Color)
Dim bmTemp As Bitmap
bmTemp = pctGraph.Image
Dim MyClr As Color
bmTemp.SetPixel(x, y, clr)