MAXScript Tools and Interaction with 3ds Max > DotNet In MAXScript >

# DotNet In MAXScript

Not all ActiveX controls have been recompiled for the64 bit versions of Microsoft Windows. Various areas of the 3ds Max User Interface rely on ActiveX controls like TreeView and ListView. To provide an alternative implementation of these and other controls,3ds Max 9 and higher provide access to DotNet Classes, Objects and Methods and provides a dotNetControl User Interface Control to use in MAXScript Rollouts.

NOTE ON DOTNET PERFORMANCE:
Since DotNetuses a Just in Time compiler (JIT), the first time you load or execute any managed code, the Common Language Runtime (CLR) will compile the Intermediate code into machine language code, causing a significant performance hit. The second time the code is executed in the same session, the JIT compiler will use cached binaries instead of compiling the code again and the code will execute much faster.
So for instance, the first time the Named Selection Sets tool is opened, it can take several seconds for the dialog to open. The second time it would open instantly.

### DotNet Topics Index:

dotNetClass

dotNetObject

dotNetControl

dotNetMethod

dotNetMXSValue

MAXScript / DotNet Value Conversions

DotNet Objects and Classes Life Time Control

dotNet Struct Methods

### DotNet Examples Index:

Creating A Simple DotNet MonthCalendar And Changing Its Colors

Creating A Simple Web Browser Using DotNet

Using DotNet Forms To Create MAXScript User Interfaces

Registering Windows SystemEvents Callbacks Using DotNet

### MaxCustomControls Assembly:

MaxCustomControls Assembly

### Converting Scripts From Using ActiveX Controls to DotNet Controls:

Converting Scripts From Using ActiveX Controls to DotNet Controls

Converting ActiveX ListView Control to DotNet ListView Control

Converting ActiveX TreeView Control to DotNet TreeView Control

### External Files Containing DotNet Examples and Related Functionality:

[3dsMax Path]\stdplugs\stdscripts\NET_ListViewWrapper.ms

This script contains useful functions for creating and managing ListView DotNet controls.

[3dsMax Path]\stdplugs\stdscripts\NET_TreeViewWrapper.ms

This script contains useful functions for creating and managing TreeView DotNet controls.

[3dsMax Path]\ui\macroscripts\Macro_BakeTextures.mcr

The Render To Texture dialog has been updated to use DotNet ListView controls instead of ActiveX controls.

[3dsMax Path]\ui\macroscripts\Macro_NamedSelSets.mcr

The Named Selection Sets editor dialog has been updated to use a DotNet TreeView control instead of an ActiveX control. It is a good example of using Drag And Drop in DotNet TreeView controls.

### External Resources:

Microsoft Developers Network Library - System.Windows.Forms documentation:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.aspx