Thank you Thank you
By the way, I enjoy your book big time, I use it as a great reference...
Eduardo
Shay Friedman wrote:
> require 'System.Windows.Forms'
> include System::Windows::Forms
>
> diag = OpenFileDialog.new
> res = diag.show_dialog
> if res == DialogResult.OK then
> diag.file_names
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
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-co