c# - Align TextBox and Label text -
I'm designing a UI, and I got my head scabbed: how do I get a text box text and a label text Which can be aligned.
In design mode, it is easy, you take one with your mouse, a purple line appears and a wola! Alignment is good, but my code is generated, how can I align their contents?
Thank you!
Edit : Layout is something I can not use (I do not make rules, my boss does ..)
I like the use of FlowLayoutPanel
(instead of TableLayoutPanel
) for this purpose Because you do not have to be fiddle with the column. Remember , to control vertical centered both top and bottom anchors on each control, and Flow layout control. Set AutoSiss = True and Autozizamod = Grow and Shrink. Edit : "Layout is something I can not use" in relation to your restriction: so that you can access the purple text baseline snapline status program, respectively. Want instead? It is possible, but the layout is unlikely to happen faster because only designer knows for the control of where it is, so you have to design a designer for all those controls that you need it.
There are some codes that can be used as the starting point, but as I said, it is not correct, possibly considering the constraints of performance.
Comments
Post a Comment