Notifications
Clear all

[Closed] For loop in DotNetControls

Hello :

I have a DotNetControl Panel ,and Creat some Buttons on it . so have can i Enumerate it ??

I know the C# code like this:

foreach(Control c in Panel.Controls){...}

But I use the maxscript code :

 for c in panel.controls do (...)

get a Error :
>> MAXScript Rollout Handler Exception: – No “map” function for dotNetObject:System.Windows.Forms.Control+ControlCollection << :banghead:

1 Reply
 lo1
for c = 1 to panel.controls.count do panel.controls.item[c-1] ...