answersLogoWhite

0


Best Answer

Both properties specify what to do with the position of a control when a form being re-sized.

Anchor property allows you to specify the position of the control within the Form, the main/root container of any given windows form.

Dock property allows you to specify the position of the control relatively to the edge of the container. The container, could be a panel (for radio group), or a form itself.

Another way to understand the difference is to look the similarity first:

When a boat is docked in a harbor, e.g at ABC, the position of the boat is fixed. Another boat, right next to the docked boat, uses its anchor to have the position fixed, the observers will see no difference, except the way how the boat are "tied" to the position at ABC.

Now just picture that "harbor" is another a Floating dock, that by itself may shift position over time. Let's moved it from ABC to XYZ, somewhere in the middle of south Pacific.

The Docked boat, always has the same relative position to the dock, hence it will be moved along with the dock from ABC to XYZ.

The one Anchored, well, it is fixed to the earth (the form), so, when the dock float to XYZ, the boat is still at ABC. The relative positions between the floating dock and the boat would change (and to its sister boat)

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How anchoring is different from docking in c sharp?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does c sharp work on c or c plus plus compilers or you need a c sharp compiler?

They are different languages, each of them requires its own compiler.


What are the different notes?

a flat( or g sharp),a, b flat( or a sharp), b, c flat (or b sharp), c, c sharp (or d flat), d, e flat (or d sharp), e, f flat( or e sharp), f, f sharp ( or g flat)and g.


What are the different musical?

a flat( or g sharp),a, b flat( or a sharp), b, c flat (or b sharp), c, c sharp (or d flat), d, e flat (or d sharp), e, f flat( or e sharp), f, f sharp ( or g flat)and g.


What are the notes to?

A sharp G G E sharp G E sharp A sharp A sharp C C A sharp C E sharp G A G E sharp A sharp A sharp A sharp G E sharp C this is not on the Flute btw idk what instrument its on


What are All the enharmonics on the piano?

Enharmonics is the name for a pitch that is "spelled" three different ways. # C=B sharp, D double flat # D flat= C sharp, B double sharp....


What are the notes to fireflies?

A sharp G G E sharp G E sharp A sharp A sharp C C A sharp C E sharp G A G E sharp A sharp A sharp A sharp G E sharp C this is not on the flute btw idk what instrument its on


How do you play Simpson theme on keyboard?

here it is C,E,F SHARP,A,G,E,C,A,F SHARP,F SHARP,F SHARP,G,A SHARP,C,C,C,C


What are the different section in c sharp program?

Depends on the definition of Section and the context. C# itself has no such notion.


What are the basic difference between c sharp and vbnet?

They use different syntax.


What key signature has G sharp B sharp and C sharp?

C# Major


What about multithreading in c sharp?

Multi-threading in c sharp is a system with different tutorial. Like: interaction between threads, producer, using thread pool and using mutex objects.


What are the notes for the c sharp harmonic scale?

C sharp, D sharp, E natural, F sharp, G sharp, A natural, B sharp & C sharp We call the note C "B sharp" to avoid using the same letter name twice. If we used the note name "C" we would have 2 C-notes and no B-notes in the scale!