A
active
picInfo is a PictureBox that I write into when the mouse moves. Below is a
snip of the code.
The text flashes on the screen but does not stay there.
Anyone know why?
Second question.- Do I need to dispose of g?
Third question - Seems like Image should refer to something. How does
that happen after I set it to Nothing
........snip
picInfo.Visible = True
picInfo.Location = InfoLoc
picInfo.Image = Nothing 'Clear the image
Dim g As Graphics = picInfo.CreateGraphics
g.DrawString("Start X =" & CStr(mMarqueeStartPoint.X), New Font("Arial", 8),
New SolidBrush(Color.Black), 0, 0)
g.DrawString("Start Y=" & CStr(mMarqueeStartPoint.Y), New Font("Arial", 8),
New SolidBrush(Color.Black), 0, 10)
........snip
End Sub
snip of the code.
The text flashes on the screen but does not stay there.
Anyone know why?
Second question.- Do I need to dispose of g?
Third question - Seems like Image should refer to something. How does
that happen after I set it to Nothing
........snip
picInfo.Visible = True
picInfo.Location = InfoLoc
picInfo.Image = Nothing 'Clear the image
Dim g As Graphics = picInfo.CreateGraphics
g.DrawString("Start X =" & CStr(mMarqueeStartPoint.X), New Font("Arial", 8),
New SolidBrush(Color.Black), 0, 0)
g.DrawString("Start Y=" & CStr(mMarqueeStartPoint.Y), New Font("Arial", 8),
New SolidBrush(Color.Black), 0, 10)
........snip
End Sub