Public Shared oApplication As System.Windows.Forms.Application ' Initialize Public Shared Function Initialize() As Boolean ' Startup directory Select Case Framework.App.nApplicationMode Case 1 Framework.App.cStartupDirectory = Framework.App.oApplication.StartupPath + "\" Framework.App.cStartupDirectory = System.Windows.Forms.Application.StartupPath + "\" Case 2 Framework.App.cStartupDirectory = Framework.App.oServer.MapPath("") Case 3 Framework.App.cStartupDirectory = Framework.App.oServer.MapPath("") End Select Return True End FunctionIn Case 1, if I reference the full path for the StartupPath property by the use of System.Windows.Forms.Application, this works. But, if I try to initiliaze oApplication to be equal to System.Windows.Forms.Application, I can't use the first line in Case 1 because there is a reference problem. The message is: