Recently, I play around with anchoring feature in .NET. I found that .NET anchoring is more "accurate" in this scenario compare to VFP.

Let assume we have few controls placed at the center of form. There may be some situations we don't want to have anchoring at all because it make our screen look ugly, combobox become too long and etc. We want these controls retain at the center with same size even though the form is maimized. 

Lets turn off anchor for all controls - set 0 (ZERO) to anchor property (VFP); set None to anchor property (.NET).

 

Figure 1 VFP Form at design time

 

Figure 2 .NET Form at design time

Let resize the form and see what will happen.

 

Figure 3 VFP Form at runtime

 

Figure 4 .NET Form at runtime

As we can see here, VFP controls retain at the same position. However, .NET controls's has been moved to center of form. From this testing, we can say that, VFP always use "Left, Top" anchoring if we set anchoring off. Do you agree?

 

Technorati tags: ,