Notifications
Clear all

[Closed] Is it possible to make custom dotnet control via live compile?

I want to have numeric up and down cell for datagridview.
I know there is .dll somewhere I can download.
But, I really don’t want to have additional file.
Would it be possible to have that with the live compile thingy with maxscript?

7 Replies

if you just want to save your script with 1 file , CSharpCodeProvider help everything , if you want a optimized method , a dll by yourself is needed
if you just need spinner , dotnet have one by default

I want spinner in DataGridView cell.
So… I can find a source code for that dll and just run throught CSharpCodeProvider?
Can I save that as Dll so I can compile only one time?

so an additional file is supported or not?
if not , you need run all the C# code in CSharpCodeProvider , and everytime you run the mxs (or you write if to change to everytime run max) ,the CSharpCodeProvider create a new dll to use
if yes , just use the dll as assembly

I can not send dll with it.
I can have only one encrypted mse file.

So… I guess

  1. comepile with CSharpCodeProvider all the time
  2. compile it and save as dll and check if dll is there and if not compile right?

comepile and assembly is done by CSharpCodeProvider , you only need check the class is existing or not
but the c# code is so long , you can try it , maybe not clear like VS

ya… it is almost 800 lines of code.
Even after taking out comment I think it would be 500 lines.
It might be better uuencode the dll…