Results 1 to 4 of 4

Thread: can someone look at this code for me?{resolved}

Threaded View

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    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.
    Last edited by System_Error; May 21st, 2004 at 05:22 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width