Jump to content
Ian Branch

Automatic spacing of buttons on a panel??

Recommended Posts

Hi Team,

I have 4 buttons evenly spaced across a panel on a form.

The form width can be manually expanded at run time.

I can set the left and right buttons (1 & 4) using the Anchors.

How can I adjust the position of the two middle buttons (2 & 3) programmatically to remain equally spaced between button 1 & 4 if/when the form is expanded?


Regards & TIA,


Share this post

Link to post

Hi haentschman

Thank you.  Does the job admirably.

Took me a little to figure out how to drive it but I got there.


Tks again,


Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now