Hi,<div><br><div>here  is the code:</div><div><br></div><div>import clr</div><div>clr.AddReference(&quot;System.Windows.Forms&quot;)</div><div>from System.Windows.Forms import Form,Application,Button</div><div>form=Form()</div>
<div>form.Controls.Add(Button())</div><div>print form.Controls[0] #this code didnt work with an error say &quot;not indexable object&quot;</div><div><br></div><div>but this worked in ironpython,it seems in ironpython it treats the &quot;form.Controls&quot; as an list like object </div>
<div>I can only get the form.Controls value use the &quot;form.Controls.get_Item(0)&quot; in the python for .net</div><div>So is there a chance to imprive Python for .net to have that characteristic?</div><div><br></div><div>
thanks</div><div><br></div></div>