Information générale
Catégorie:
The Mere Mortals .NET Framework
Thank-you for that tip. However, the main entry point already has the declaration [STAThread]:
[STAThread]
public static void Main(string[] args)
{
// Instantiate the Application object
App = new AppWPF();
// Set the ShowInTaskbar default
mmAppWPF.WindowManager.ShowInTaskbarDefault = ShowWindowsInTaskbarDefault;
bool? Result = true;
//// Display the login window
//UserLoginWindow LoginWindow = new UserLoginWindow();
//Result = LoginWindow.ShowDialog();
if (Result == true)
{
App app = new App();
app.InitializeComponent();
// Instantiate the main application window
mainWindow = new MainWindow();
This last statement leads directly to the code I posted earlier which fails with the error.
I would appreciate any other suggestions you might have.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement