Results 1 to 3 of 3

Thread: Picture Box problem

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Post

    I am using a picture box in "graphics method" mode e.g drawing on it with SetPixel and Line.

    Is there anyway (other than using paint event) to refresh the graphics after they have been written over by another window. I cant re-draw the graphics but can I save them and redraw them in a paint event?

    Cheers

  2. #2
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Post

    Set the Picturebox's AutoRedraw property to True

    r0ach™
    Don't forget to rate the post

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Post

    I`ve tried this, but if I set autoredraw=true (design time) Only the first pixel I plot gets drawn however if I drag a window over my picture box then the other pixels appear.

    Any ideas?


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