Deleted lines

  • Thread starter Thread starter Alberto
  • Start date Start date
A

Alberto

I have a Panel where the user insert PictureBox. My application draw lines
between this PictureBox but when something appears (like a dialog form) over
those lines, they dissapear.

How can I solve this? Thank you very much.
 
Alberto said:
I have a Panel where the user insert PictureBox. My application draw lines
between this PictureBox but when something appears (like a dialog form)
over those lines, they dissapear.

Your application should place the code for drawing the lines inside the
Paint event. This event is automatically fired again when you move something
over your form. When Paint is fired again, you redraw everything on your
panel, so the lines become visible again.
 
Thank you. This could be a good idea but will be the installation process
more dificult?

"Alan" <[email protected]> escribió en el mensaje de noticias
I have a Panel where the user insert PictureBox. My application draw lines
between this PictureBox but when something appears (like a dialog form)
over
those lines, they dissapear.

How can I solve this? Thank you very much.


If you install VB Power Packs, you can use the LineShape control and
you won't have to Paint them yourself. It can be used from C#.

http://msdn.microsoft.com/en-us/vbasic/bb735936.aspx

-- Alan
-- http://cleartopartlycloudy.blogspot.com/
 
Finally it works properly if I delete the line in the mouseMove event before
change the coordinates.
 
Thank you. This could be a good idea but will be the installation process
more dificult?

"Alan" <[email protected]> escribió en el mensaje de noticias


If you install VB Power Packs, you can use the LineShape control and
you won't have to Paint them yourself.  It can be used from C#.

http://msdn.microsoft.com/en-us/vbasic/bb735936.aspx

-- Alan
--http://cleartopartlycloudy.blogspot.com/

Yes but the site says they provide a redistributable package. It
would be worth looking into.

-- Alan
-- http://cleartopartlycloudy.blogspot.com/
 
Back
Top