private void frm_LogIn_Load(object sender, EventArgs e) { FileIo.initWordList(); AppDomain.CurrentDomain.SetData("DataDirectory", System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)); }