Reputation: 45
I have two windows: Window1
is more like Splash Screen with an ComboBox
to choose the excel file. Window2
has various textboxes, datagrids, tabs which will load the data corresponding to that file.
Now I have a Button
called "Go
" in Window1
which has the following code:
switch (ComboBoxAreaList.Text)
{
case "Area1":
Properties.Settings.Default.FileLocation = "C:\\ProgramName\\Area1.xlsx";
break;
case "Area2":
Properties.Settings.Default.FileLocation = "C:\\ProgramName\\Area2.xlsx";
break;
case "Area3":
Properties.Settings.Default.FileLocation = "C:\\ProgramName\\Area3.xlsx";
break;
default: MessageBox.Show("Error!");
break;
}
MainWindow AreaDataWindow = new MainWindow();
AreaDataWindow.Show();
Close();
I have a Button
called "ChangeAreaData"
in Window2
which has the following code:
SplashScreen NewSplashScreen = new SplashScreen();
NewSplashScreen.Show();
Close();
Initially, Window1
will show up and user clicks the Go
button, the Window2
will load without any issues. Then I go back to Window1
using ChangeArea
button and change the data by choosing an item in ComboBox
. Then load Window2
again by clicking Go
button, I will get the following error in Windows XP:
AppName: area logs status.exe AppVer: 1.0.0.0 ModName: kernel32.dll
ModVer: 5.1.2600.7475 Offset: 00034f03
So just the second time, it's throwing that error. It's working fine in Windows 10 and 8. But not in Windows XP. Any help much appreciated.
Upvotes: 0
Views: 90