使用了FormDrag后,发现在SharpDevelop下会出现exception:
"System.InvalidOperationException: Cross-thread operation not valid: Control [your_control_name_here] accessed from a thread other than the thread it was created on"
google了一下,发现这应该是.net 2.0升级后的设定
可以在Form_Load的地方加入
Control.CheckForIllegalCrossThreadCalls = False