Bug in Rhino.UI.Dialogs.ShowEditBox

Hi guys,
I’m trying to port a grasshopper script from V6 to V7 and I get an error when using this function inside a standard c# script component

    string returnstring;
    Rhino.UI.Dialogs.ShowEditBox("title", "message", "default", false, out returnstring);

error (translated):

  1. Exception when setting “System.Windows.ResourceDictionary.Source” (line: 0)

Hi @blind,

This seems to work. What am I missing?

test_showeditbox.gh (4.1 KB)

– Dale

I actually have no idea how did it, and can’t reproduce it now. Probably something else I was messing with at the time.
Sorry, @dale