So you're right. OK. I don't know why it wasnt workings for me. Maybe because I was trying to put it in Form_Load instead of Form_Paint. But Whatever....

Well here's some random knowledge about VB.net:

VB Code:
  1. If you_make_a_form_hide And show_a_new_form Then
  2.     'when you decide to close the form by hitting the X
  3.     theFormWill.Close()
  4.     'but the previous form that was hidden will remain in memory.
  5. End If
  6.  
  7. 'to make sure no part of your program stays in the memory,
  8. 'after closing your app you need the following sub:
  9. Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
  10. 'and inside the sub you need the word
  11.     End 'this will close all forms, and all open project files.
  12. End Sub