require 'System.Windows.Forms'
include System::Windows::Forms

diag = OpenFileDialog.new
res = diag.show_dialog
if res == DialogResult.OK then
  diag.file_names.each { |f| puts "You selected #{f}" }
end

Shay.
--------------------------------------------------------
Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby
Unleashed
Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay


On Tue, Jul 27, 2010 at 6:31 PM, Eduardo Blumenfeld <li...@ruby-forum.com>wrote:

> Hi all,
>
> How can I call the filedialog window from an IronRuby program, getting
> the list of files selected in the dialog in a String or Array variable?
>
> Thank you in advance...
>
> Eduardo Blumenfeld
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to