Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- member this.OpenDialog () =
- let ofd = new OpenFileDialog()
- ofd.Filter <- "jpg files (*.jpg)|*.jpg";
- ofd.FilterIndex <- 2;
- ofd.RestoreDirectory <- true;
- if (ofd.ShowDialog() = DialogResult.OK) then
- //Read the contents of the file into a stream
- ofd.OpenFile();
- else null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement