[Ironruby-core] Accessing Enumeration in IronRuby
curth at microsoft.com
Tue Jun 16 12:10:14 EDT 2009
You're close; you want "System::Drawing::Color.DeepPink".
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Mohammad Azam
Sent: Tuesday, June 16, 2009 9:04 AM
To: ironruby-core at rubyforge.org
Subject: [Ironruby-core] Accessing Enumeration in IronRuby
I am using IR to do some IronRuby programing and enjoying it!
I created a Form like this:
Form = System::Windows::Forms::Form
form = Form.new
Now, I need to assign BackColor to the Form. I tried the following:
form.BackColor = System::Drawing::Color::DeekPink
But it is not able to recognize the Color class.
>>> form.BackColor = System::Drawing::Color::DeepPink
:0:in `const_missing': uninitialized constant System::Drawing::Color::DeepPink (
Posted via http://www.ruby-forum.com/.
Ironruby-core mailing list
Ironruby-core at rubyforge.org
More information about the Ironruby-core