Results 1 to 3 of 3

Thread: Picture control

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2001
    Location
    Greece
    Posts
    164

    Arrow

    Hello all,

    I am using the methods of the pic control (line, scale etc.) to draw lines on it.

    Here's the problem: When the form containing the picture control looses focus, all the lines I have drawn dissappear !!

    If I use API calls to do this, would I still have problem ? Any ideas ? (The use of the picture control is a must)

  2. #2
    Lively Member
    Join Date
    Feb 2001
    Location
    Malaysia
    Posts
    71
    Hi, you have 2 options:
    (1) Put all drawing commands in the PictureBox's Paint event, or
    (2) Set AutoRedraw of PictureBox to true, before the drawing commands.

  3. #3
    Guest
    The AutoRedraw method would probably be the best method if your drawings occur at different times.

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