S
ShadowMan
I am getting an "'Application' is an ambiguous reference" error when I try
to start my WinForms appllication. How can the Application object be
ambiguous? Any ideas what I did wrong? Thanks.
I am using C# and VS2003.
I have declared references:
using System;
using System.Windows.Forms;
using System.ComponentModel;
The error occurs in:
[STAThread]
public static void Main()
{
try
{
Global.MainForm = new frmMain();
Application.Run(Global.MainForm); <======== 'Application' is
an ambiguous reference
SetupSplashScreen();
GetConfigurationData();
if(ValidDB)
{
InitializeObjects();
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message, "MainForm",MessageBoxButtons.OK,
MessageBoxIcon.Stop);
}
}
to start my WinForms appllication. How can the Application object be
ambiguous? Any ideas what I did wrong? Thanks.
I am using C# and VS2003.
I have declared references:
using System;
using System.Windows.Forms;
using System.ComponentModel;
The error occurs in:
[STAThread]
public static void Main()
{
try
{
Global.MainForm = new frmMain();
Application.Run(Global.MainForm); <======== 'Application' is
an ambiguous reference
SetupSplashScreen();
GetConfigurationData();
if(ValidDB)
{
InitializeObjects();
}
}
catch(Exception ex)
{
MessageBox.Show(ex.Message, "MainForm",MessageBoxButtons.OK,
MessageBoxIcon.Stop);
}
}