- Home /
Save Dialogs
hello, I'm trying to use ye old c# dialogs on my project, it needs the dll System.Windows.Forms that should be already accessible, but for some reason I had to import it (from unity's mono folder) so the command SaveFileDialog saveFileDialog1 = new SaveFileDialog();
would work.
Now I'm able to save my file, but before the dialog appears, the error "could not register the window class win 32, error 0" is prompted twice the first time my saving function is called. on this table error 0 appears as operation succesful, is this right?. If it's not really an error, now how do I make these windows not appear on my build?
Answer by Dreamora · Jul 01, 2011 at 02:36 AM
Windows.Forms are not present in the Unity mono and don't work realiably either actually.
You are better of to write something basing on Unity GUI or meshes + textures than to use System.Windows.Forms, for your own good
well, it is doing the functionality I need, the messages are just annoying. The dll I had to import was Unity\Editor\Data\$$anonymous$$ono\lib\mono\2.0\System.Windows.Forms.dll so I thought they were on mono.I'm also having trouble bringing the dialog to the front when on full screen, so I guess GUI or text assets must be a better way to go anyway, thanks for your time!
since the dll was in unity/mono folder shouldn't it already be accessible without me needing to put it in the plugin folder?