Grasshopper Icons are too big after starting via C#

Hello from cadwork,

we have a customer who has problems with the icon sizes in Grasshopper (Rhino 7 and Rhino 8) after starting it via our Rhino.Inside dll. Normally this works fine. Does anyone have an idea?

We start Grasshopper via Rhino.Common API the following way:

    using (var rhinoCore = new RhinoCore(new string[] { "/netfx /NOSPLASH" }, WindowStyle.Normal))
    {
      var grasshopper = Rhino.RhinoApp.GetPlugInObject("Grasshopper") as Grasshopper.Plugin.GH_RhinoScriptInterface;
      grasshopper.EnableBanner();
      grasshopper.ShowEditor();
      rhinoCore.Run();
    }

Is it broken now when starting normally as well, or only when starting via Rhino.Inside?

Also, what’s the zoom level on the monitor this is being shown on?

Thank you for your quick response.

It’s only when starting via Rhino.Inside. We have to ask for the zoom level.

We also tried to delete the Roaming\Grasshopper folder to cleanup the XMLs. Same result.

The customer works with 250% zoom level and a resolution of 3840 x 2400.

This is likely because Rhino is only System DPI aware and you may be running your application in per-monitor DPI aware mode. You may have to create a manifest for your application as described here.

Hope this helps!

Thank you. We will take this into account for our application in the future.