Happy New Year.
It works, thanks.
The problem was, I changed .MoveMode to TopRight, but did not change .Left to .Right, and then I tried with values in Form_Resize.
This worked with .Left, (button was moved), but not with .Right.
Now it works, the button is related to the right side and can be moved.
But the original problem was (is), on a XP the project name Proyecto1 will be displayed in title line, but on W7 not, there in no project name.
I thought this happens because the ClsButtonNC is related to the left side, and if I will relate it to the right, then left side will stay free and Proyecto1 will be displayed.
I was wrong, Proyecto1 will be not displayed too.
Probably it is not possible.
If you have an idea how to view the project name on W7, I will be glad to have your advise.
Thanks again
swerd