Currently i'm working in WF-GridControl, implemented the zooming concept to checkbox control. Checkbox rectangle will be zoomed properly for Screen Resoultion(1920*1080) but for other resolution it is not working, please suggest me how can I resolve,
renderer = this.groupingGrid.TableControl.CellRenderers[GridCellTypeName.CheckBox] as GridCheckBoxCellRenderer;
//for maintaining the original size of the checkBox
SavedCheckBoxSize = renderer.CheckBoxSize;
renderer.CheckBoxSize = new Size((int)(SavedCheckBoxSize.Width * usePercent), (int)(SavedCheckBoxSize.Height * usePercent));
and i'm tried with sample level to resolve resolution problem.
this.gridGroupingControl1.TableControl.DpiAware = true;
this.AutoScaleMode = AutoScaleMode.Dpi;
Please suggest me your ideas, Thanks in Advance.
Aucun commentaire:
Enregistrer un commentaire