Remember VB6's good-old Autoredraw property for forms and pictureboxes etc?

What is the equivalent code in VB.net? I'm trying to draw lines on a form but they wont stay put if I minimize/maximize the form.