can someone look at this code for me?{resolved}
First of all, what I want to do is draw simple things such as rectangles to a bitmap because, if you use creategraphics() the graphics dissapear after being minimized or moved. I sort of know how to go about doing this but my code is not working. The graphics are not showing up when I try to draw to a bitmap. Here's my code...
Dim bmp As New Bitmap(222, 222)
Dim grfx As Graphics = Graphics.FromImage(bmp)
Dim rect As New Rectangle(123, 211, 80, 90)
grfx.DrawRectangle(Pens.Blue, rect)
Can anyone tell me what I am doing wrong?
Any help is appreciated.