c# - Button with a CheckBox -
we have requirement create button checkbox
embedded in it.
after trying various option, found option of having checkbox
appearance of button
not suffice need have event being fired when button
being clicked checkbox.checked
state used other modifications.
can guide me on how proceed task?
if want can this:
checkbox1.parent = button1; // make large enough checkbox1.location = new point(5, (button1.height - checkbox1.height) /2 + 1) ; checkbox1.textalign = contentalignment.middleleft; button1.textalign = contentalignment.middleright;
make sure set texts
, alignments both prevent clashes. make sure test if act intended..!
you can place button
wherever want, align right or clear text
..
of course can wrap in class, if need repeatedly..
Comments
Post a Comment