[Ironruby-core] Accessing Enumeration in IronRuby

Ivan Porto Carrero ivan at flanders.co.nz
Tue Jun 16 12:10:01 EDT 2009


try System::Drawing::Color.deep_pink :)
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Tue, Jun 16, 2009 at 6:04 PM, Mohammad Azam <lists at ruby-forum.com> wrote:

> 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
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090616/f77c29a1/attachment.html>


More information about the Ironruby-core mailing list