mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 16 Jan 2012 06:13 PM |
| I want to select a file path to put stuff in |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
| |
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 16 Jan 2012 06:22 PM |
| I tried, but it won't show up? |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
| |
|
|
| 16 Jan 2012 08:08 PM |
| Did you ever call the ShowDialog method on the OpenFileDialog? Or look up documentation on how to properly use it? MSDN is your best friend in this case. |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 08:14 PM |
| OpenFileDialog.ShowDialog() should work. |
|
|
| Report Abuse |
|
|
doomtitan
|
  |
| Joined: 02 Apr 2011 |
| Total Posts: 111 |
|
|
| 16 Jan 2012 09:23 PM |
I don't remember exactly, but it was something along the lines of:
OpenFileDialog ofd = new OpenFileDialog(); ofd.filter = "YOUR FILTER"; ofd.title = "YOUR TITLE";
if (ofd.ShowDialog() == System.DialogResult.Ok) { //stuff }
|
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 10:12 PM |
| @doomtitan: I believe that is exactly what it would be, except 'title' and 'filter' would have the first letter capitalized. |
|
|
| Report Abuse |
|
|