Keep form gadgets in form center...

lidds

Junior Contributor
Joined
Nov 9, 2004
Messages
210
Is there a way that I can keep form gadgets within the centre of a form, even if it get resized e.g. using tables within HTML pages.

Cheers

Simon
 
hummmm... gadgets!! :p

You can... but not automaticly like an Anchor or a Dock.
What I can advise you to do is to add a panel to the window, and add any other control to it (size the panel the size you want it the be and don't dock or anchor it).

This way, you only have to center the panel to have all other controls centered.

Finally, do the Panel center calculus on the Resize Event of the form.

Works like a charm!

Alex :p
 
Back
Top