Most of my .Net work has been Console based up to now, but I'm venturing into form work.

I was an old hand at VB6 and now I'm finding the little things a pain.

What is the best way to end a program that has a few forms open?

in Vb6 I might have used...

VB Code:
  1. Sub QuitProg()
  2.  
  3. dim x as form
  4.  
  5. For Each x in Forms
  6. Unload x
  7. Set x = Nothing
  8. Next x
  9.  
  10. End
  11.  
  12. End Sub

What about VB.Net?