[Ironruby-core] FileDialog in a IronRuby App.

Eduardo Blumenfeld lists at ruby-forum.com
Tue Jul 27 21:46:40 EDT 2010


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.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

-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list