thanks a lot, machan, need to assign values directly as follows:
Point point1 = new Point(1, 1);
Now it works.
Thanks machan .......
----- give value directly -----
Point point1 = new Point(1, 1);
Yes after this, it works machan.
------ Post added on 1667472795