Error when interating over some types in VL.ImGUI

Hey there,

Was trying some stuff with monitors and wanted to build a quick GUI with ImGUI. I’m just trying to iterate over all Screen and create button for them, as follows :


As you can see, the ImGUI region throws an error. You can see it below :

Error: Unable to cast object of type 'System.Windows.Forms.Screen' to type 'System.Windows.Forms.Screen[]'.

Doing this seems to work :


And this works as well :


A repro patch is attached so you can repro :-)


ImGUIIterate.vl (34.1 KB)

1 Like

Thanks, fixed in upcoming.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.