General information
Category:
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only