.NET entering numbers into NumericUpDown isn't working

45 Views Asked by At

I'm seeing an odd issue with the NumericUpDown. Could be related to the language being used as I'm calling .net via Max Script in 3DS Max but I'm not sure. Once the control is added I can only enter values directly into the type in box using the keyboard numpad. The alpha numeric keys don't work at all and even stranger several numbers don't work on the numpad either, 2,4,6,8 don't do anything at all.

The code sample will make little sense to anyone that hasn't used Max with .net. Any insight would be appreciated. Thanks.

dn=dotNetObject "numericUpDown"
1

There are 1 best solutions below

0
Paul On

Found the culprit. In 3DS Max you need to set EnableAccelerators=false when you click on the control. Setting to false disables Max's key inputs. I had it in the code but it was running before it was clicked on and was being set back to true.