The new page opens fine and everything works. The ReturnToMain button is working fine. But when I close the main form it breaks. This doesn't happen on the default Page2, only the one I added.
The part that is breaking is this (line highlighted). I've copied the code to the new page like it says to do. It all works fine until I start adding drivers so I think that's where the issue is but I can't figure out how to correct.
#Region "Constructor/Destructor"
'****************************************************************
'* UserControl overrides dispose to clean up the component list.
'****************************************************************
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing Then
If SubScriptions IsNot Nothing Then
SubScriptions.dispose()
End If
End If
Finally
'V3.99p - added Try-Catch
Try
MyBase.Dispose(disposing)
Catch
End Try
End Try
End Sub
#End Region