可能重複:
How to make the + operator work while adding two Points to each other?System.Drawing.Point操作錯誤
我的代碼
position.Location = (e.Location + pic1.Location) - bild_posi.Location;
錯誤水木清華這樣的:
the operator "+" isnt compatible with "System.Drawing.Point + System.Drawing.Point"
我該如何解決這個問題?
這是因爲點的座標。您必須總結(e.Location.X + pi1.Location.X)等等 – 2012-07-26 14:03:53