-
I have an ActiveX UserControl which contains a Picture Box. I draw some lines on this Picture Box and every thing sees fine. But, at Design-time of the form, if I click on my control, the lines drawed on the picturebox disapear!!!
When I run the app, the lines appears again.
Any idea about this?
-
I think that it's the refresh event of the picture box. You'll have to save the line specs somewhere and in the picturebox_refresh event, redraw the lines (maybe)
Cheers
Chris
-
I'm afraid that PictureBox does't has a Refresh event. It has a Paint event and I already put mu lines into this event and got the same result.
This only happends in the design-time of the form.