在异步回调中调用MessageBox.Show

        public static void Test()
        {
            ThreadStart aThreadStart = delegate()
            {
                Thread.Sleep(1000);                 MessageBox.Show("Good!");
            };

            var aThread = new Thread(aThreadStart);
            aThread.Start();
        }

 

你可能感兴趣的:(message)