[IronPython] Accessing Win Form Properties

Martin Maly Martin.Maly at microsoft.com
Tue Oct 4 21:11:06 CEST 2005

I suspect that the "Form" you are referencing is the
System.Windows.Forms.Form class.
Once you have instance, it should just work:

f = Form()
f.Text = "Hi"
print f.Text

I hope this helps

-----Original Message-----
From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
Davy Mitchell
Sent: Tuesday, October 04, 2005 11:31 AM
To: users-ironpython.com at lists.ironpython.com
Subject: [IronPython] Accessing Win Form Properties

Hi Folks,

Apologies if this is a FAQ but I couldn't find anything in the archives.

I am writing a GUI Designer in IronPython.
 print Form.Text
 <property# Text on Form>

I am probably missing something simple but how do I get the actual
text/value of the property.

Davy Mitchell

users-ironpython.com mailing list
users-ironpython.com at lists.ironpython.com

More information about the Ironpython-users mailing list