winforms - How can I neatly line up right-aligned check boxes with with other controls? -
the visual studio winforms designer lets snap text boxes, list boxes, buttons, , forth reasonably well. however, check box checkalign=middleright not work quite others, because has 2 components: built-in label, , check box itself. if line text other labels, check box left floating , not automatically line up. can turn off autosize , attempt size checkbox
control check box lines up, touchy , thrown off custom font sizes.
in example, i've almost lined check box other controls, not quite:
if had several check boxes real headache, autosize turned off position of check box relative end of text, each control has individually sized pixel pixel.
what's best way line check boxes other controls?
one workaround not include text checkbox
, instead have separate label
control. however, doing lose ability click on label toggle check box. on high-resolution screen, clicking 10x10 pixel finicky, poor ux experience. add onclick
event label, of course, seems solving wrong problem.
here's example of else same issue: in preferences panel in oracle sql developer, when there's mix of properties check boxes handled separate labels , boxes:
personally, avoid issue not having checkboxes aligned right:
rather having caption on left.