private void ThisAddIn_Startup(object sender, System.EventArgs e) { coverAddin = this; word = new Word(); word.start(); DocumentBeforeDoubleClick(); coverThread = new Thread(new ThreadStart(messageLoop)); // Start the thread coverThread.Start(); }