I'm facing a problem with displaying a Winform I've created in the unity editor, for some reason the form is not displaying as it should in the unity editor...
most controls in the form have the "autosize" property set to true and the "autoSizeMode" property set to "GrowAndShrink". and whenever I display the form in the unity editor, these controls just vanish.. their size is set to (0,0) regardless of the inner controls they hold. (setting manually the "minimumSize" property of these controls does makes them visible again.)
the "sutoScroll" property is not displaying the sliders.
- the "dock" property is not acting as it should.
some of the majors I've taken:
I've added the right dlls (such as the "system.windows.forms.dll) to the unity project.
I've merged the ".cs" and ".designer.cs" of each form into a single file, so I won't face this problem "Form and designer files not linking in Solution Explorer", and I copied them to the unity project.
I've tried making a "class library" project and copy the forms into it. placing the build/debug dll in the unity project and displaying the form. (still the same result though)
I've copied the ".exe" of the winform project to unity, and calling/displaying the exe does show the form correctly, but I want to be able to share collection references between the exe and unity editor... and from what I've read online don't think it's passable ..
any suggestions on how to resolve the issue? or no how to display a Winform in unity editor without it getting all messed up, and share argument references between the both?
this is an image of the winform running in visual studio:
this is an image of the form displayed through unity: