Scaling the lines of a TreeView

Hi. I am using RhinoWindows.Forms.Dpi.ScaleSize to scale the size of controls in my plugin in order to support 4k monitors. However this does not work for TreeView controls. How can I scale the lines of the TreeView please?

Thanks

Paul

Hi @pkinnane,

Are you using WinForms, WPF, or Eto?

– Dale

Hi @dale - it’s the System.Windows.Forms.TreeView on a System.Windows.Forms.UserControl, so WinForms.

Paul

Hi @pkinnane,

WinForms should size your tree view appropriately - there should be no reason to scale (e.g. resize) the control yourself.

A few notes that might be worth reading:

– Dale

Thanks Dale. I had the TreeView.ItemHeight set to 19 which was the cause of the problem.

Paul