Skip to content

Instantly share code, notes, and snippets.

@sanmadjack
Created September 4, 2014 14:45
Show Gist options
  • Save sanmadjack/be06c8cf8a6de1632ee3 to your computer and use it in GitHub Desktop.
Save sanmadjack/be06c8cf8a6de1632ee3 to your computer and use it in GitHub Desktop.
FileChooserDialog GTK# C# Example
FileChooserDialog fcd = new FileChooserDialog ("Choose files",this, FileChooserAction.Open,
"Select", ResponseType.Ok, "Cancel", ResponseType.Close);
fcd.SelectMultiple = true;
fcd.Run (); // This opens the window and waits for the response
fcd.Destroy (); // The dialog does not automatically close when clicking the buttons, so you have to manually close it with this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment