lundi 8 janvier 2018

draw Check Box in c# at print Document

hello every one i need to draw checkbox i have more than 30 check boxes and i want to print thementer image description here at print document there is any Idea?? `Graphics gg;

try { gg.DrawString(chk_acc.Text, chk_acc.Font, new SolidBrush(chk_acc.ForeColor), chk_acc.Right - chk_acc.Height - gg.MeasureString(chk_acc.Text, chk_acc.Font).Width, chk_acc.Top, new StringFormat()); ControlPaint.DrawCheckBox(gg, 250, 250, 25, 25, ButtonState.Checked);

} catch(Exception ex) { MessageBox.Show(ex.Message); }`

MY form Result




Aucun commentaire:

Enregistrer un commentaire