[Ironruby-core] Accessing Enumeration in IronRuby

Mohammad Azam lists at ruby-forum.com
Tue Jun 16 12:04:14 EDT 2009


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 (
        from :0

Any ideas!
Posted via http://www.ruby-forum.com/.

More information about the Ironruby-core mailing list