Setting the 'Dispose(false)' made the program to continue running after I closed all forms. Same as setting the shutdown mode. When I opened the new form and closed it, the program kept running. What am I doing wrong?
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...