I am developing a vb.net application. I have rather a frustrating error that occurs and I can not seem to prevent or cure it. It does not matter what form I may executing etc - it has no pattern as to when it occurs.
Here is the error message:
"An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object."
And it always takes me back to the main.vb form which contains this codiing. It always highlights the code line of:Application.Run(frmmdiparent)
Public Sub Main()
Dim frmmdiparent As New frmMainMenu
'shows the splash screen
Dim frmMainSplash As New frmMainSplash
frmMainSplash.lblCopyright.Text = "Copyright" & "©2005 All Rights Reserved"
any help appreciated -