|
-
Apr 2nd, 2001, 08:36 PM
#1
Thread Starter
Addicted Member
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)
-
Apr 2nd, 2001, 10:55 PM
#2
Lively Member
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.
-
Apr 3rd, 2001, 02:39 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|