How do I prevent message box from erasing lines?

truc
09-12-2001, 07:13 PM
I have a program where lines are drawn based on values that are calculated in a calculator. A message box appears with feedback. However, the message box erases the lines that are drawn if I drag it over the area. Since the box appears in the middle of the page, it always manages to erase something. How do I prevent this? Two solutions are to: 1) Make the message box an overlay or something akin to it, oe 2) make the message box automatically appear in a fixed area. Any suggestions on how to do this?????

Derek Stone
09-12-2001, 07:20 PM
Set the form's/picturebox's .AutoRedraw property = True.

Good Luck
-cl

Banjo
09-14-2001, 03:01 AM
Another method is to place the line drawing code in the picbox paint event. This is only really necessary if the picture is going to be changing. Otherwise crazed-lunatic's solution is better.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum