[Ironruby-core] cannot initialize Form with IronRuby

Tomas Matousek Tomas.Matousek at microsoft.com
Sun Feb 8 15:58:01 EST 2009

Works on the bits I have. Could you try following?

f.method(:Show).clr_members.each { |m| puts m.to_string }

It should print

Void Show()
Void Show(System.Windows.Forms.IWin32Window)


From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Meinrad Recheis
Sent: Sunday, February 08, 2009 10:55 AM
To: ironruby-core
Subject: [Ironruby-core] cannot initialize Form with IronRuby

IronRuby on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.

>>> require "System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089"
=> true
>>> Form = System::Windows::Forms::Form
=> System::Windows::Forms::Form
>>> f=Form.new
=> #<System::Windows::Forms::Form:0x000005c>
>>> f.Show()
:0: wrong number of arguments (2 for 3) (ArgumentError)

>>> f.method( :Show).arity
=> 0

This is the latest daily DLR build on codeplex from 2009 Feb 1 at
9:36 PM. I read, that with older versions winforms interop has already been working.

-- henon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090208/b28a971d/attachment.html>

More information about the Ironruby-core mailing list