Aligning controls with each other at runtime

  • Thread starter Thread starter Benny
  • Start date Start date
B

Benny

Does anyone have ideas on how to align two controls at runtime? I have
two labels, label above label, and once I change the bottom, it is
obviously not aligned, but for appearance purposes I would like the
bottom centered to the top. Any ideas greatly appreciated.
 
Hello Benny!

I don't believe there are any special align methods available for use
at runtime, this is just a guess though. However, can't you catch the
event triggered when you move one of the labels and change the position
of the others so they are aligned?

-Marlun
 
Hi Benny
Honestly, I didn't understand what kind of alignment you exactly want to do,
but I think setting the "Anchor" might be helpful.
 
In .Net 2.0, you can use the FlowLayoutContainer or
TableLayoutContainer. Would those work?
 
Back
Top