private void Init() { bValidFile = true; strDataFileName = "aPIP.dat"; strDataPath = Directory.GetCurrentDirectory() + "\\Data"; MessageBox.Show(strDataPath); try { Directory.SetCurrentDirectory(strDataPath); } catch(DirectoryNotFoundException e) { MessageBox.Show("***ERROR***\nFile Not Found"); bValidFile = false; } if(!bValidFile) { Close(); //Application.Exit(); } }
application.Exit();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)