DotNet text fields

Thought I would share this information I found out yesterday. I was making a classic Windows Form and loading it through MXS, but was not able to get input to the text fields because Max wouldn’t let it have focus.

Ended up finding this MaxCustomControls.dll inside of the root directory of Max. It has a class called MaxForm ended up deriving my class from this instead of Form and worked like magic. I found out later that MaxForm inherits from Form so I would suggest using this for your UI when working with MXS and DotNet.

Hi Brian,

Your method is indeed the correct way to go about this - I just thought I’d add that it is also possible to use a standard textbox with a maxrollout by using the gotfocus and lostfocus events. I wrote about it a while back on my blog -

http://lonerobot.net/?p=568

Perhaps this is common knowledge, but in case it isn’t…

If you need to use this dll and don’t want an “ugly interface”, put this before you create\show your UI instance.

(DotNetClass “System.Windows.Forms.Application”).EnableVisualStyles();

Thank you for theinformativepost.