UserControl - Paint in Design Mode

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a usercontrol that requires I draw some lines on it which depend on
the size of the control. In the Design Mode I add the control to a form in
my application and change the size of the control. How do I show the new
lines which will be drawn while in the design mode. I tried overriding paint
but this doesn't show up until runtime.
 
Then which event do I put my line drawing routines in? I tried adding the
line to the new sub of the control and drawing the lines in the paint event
but there were no lines in the control until I ran the application.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top