Hi,<div><br><div>here is the code:</div><div><br></div><div>import clr</div><div>clr.AddReference("System.Windows.Forms")</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 "not indexable object"</div><div><br></div><div>but this worked in ironpython,it seems in ironpython it treats the "form.Controls" as an list like object </div>
<div>I can only get the form.Controls value use the "form.Controls.get_Item(0)" 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>