You're close; you want "System::Drawing::Color.DeepPink".

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Mohammad Azam
Sent: Tuesday, June 16, 2009 9:04 AM
To: [email protected]
Subject: [Ironruby-core] Accessing Enumeration in IronRuby

Hi,

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
form.ShowDialog()

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

Any ideas!
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to