I want to create a WinForms application. However, the application I want to run it with only supports Iron Python scripts.
Is there a way I can create the form in C#, and then call that exe from Iron Python?
I would build the form in Iron Python, but I am more comfortable/more experienced with C#.
Code Update:
I have the following code. I get an "IOException: file does not exist: EtechGenerator.dll". The dll is sitting next to the python file.
Folder:
This is my form class in C#:
public mainForm(int numLayers)
{
_init = true;
InitializeComponent();
}
This is my iron python script:
import clr
clr.AddReferenceToFileAndPath('EtechGenerator.dll')
import mainForm
obj = MainForm(3)
obj.Show()