Click here to Skip to main content
15,879,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: MR. Heath Stewart come in please Pin
Heath Stewart25-Nov-03 2:57
protectorHeath Stewart25-Nov-03 2:57 
GeneralRe: MR. Heath Stewart come in please Pin
nakey_yang26-Nov-03 22:03
nakey_yang26-Nov-03 22:03 
GeneralRe: MR. Heath Stewart come in please Pin
Heath Stewart28-Nov-03 3:30
protectorHeath Stewart28-Nov-03 3:30 
GeneralRe: MR. Heath Stewart come in please Pin
nakey_yang1-Dec-03 14:57
nakey_yang1-Dec-03 14:57 
GeneralRe: MR. Heath Stewart come in please Pin
Heath Stewart1-Dec-03 18:27
protectorHeath Stewart1-Dec-03 18:27 
GeneralRe: MR. Heath Stewart come in please Pin
nakey_yang3-Dec-03 15:28
nakey_yang3-Dec-03 15:28 
GeneralRe: MR. Heath Stewart come in please Pin
Heath Stewart4-Dec-03 3:55
protectorHeath Stewart4-Dec-03 3:55 
GeneralGet Path & File name using OpenFileDialog Pin
Steve McLenithan22-Nov-03 1:57
Steve McLenithan22-Nov-03 1:57 
I was trying to work with this example from MSDN Library to get the filename and path of a file:
if(openFileDialog.ShowDialog() == DialogResult.OK)<br />
{<br />
   System.IO.StreamReader sr = new <br />
   System.IO.StreamReader(openFileDialog.FileName);<br />
   MessageBox.Show(sr.ReadToEnd());<br />
   sr.Close();<br />
}


The problem is that when opening large files, at least 400MB it crashes the app. Is there any other way to get JUST the path and filename of large files without actually opening them?

Thanks,

// Steve McLenithan

Cluelessnes:
   There are no stupid questions, but there are a lot of inquisitive idots.

GeneralRe: Get Path &amp; File name using OpenFileDialog Pin
Nick Parker22-Nov-03 2:04
protectorNick Parker22-Nov-03 2:04 
GeneralRe: Get Path &amp; File name using OpenFileDialog Pin
Steve McLenithan22-Nov-03 2:12
Steve McLenithan22-Nov-03 2:12 
GeneralRe: Get Path &amp; File name using OpenFileDialog Pin
leppie22-Nov-03 3:15
leppie22-Nov-03 3:15 
GeneralRe: Get Path &amp; File name using OpenFileDialog Pin
Steve McLenithan22-Nov-03 4:36
Steve McLenithan22-Nov-03 4:36 
GeneralRe: Get Path &amp; File name using OpenFileDialog Pin
Heath Stewart22-Nov-03 4:26
protectorHeath Stewart22-Nov-03 4:26 
GeneralRe: Get Path &amp; File name using OpenFileDialog Pin
Steve McLenithan22-Nov-03 4:34
Steve McLenithan22-Nov-03 4:34 
GeneralIcon Background Pixels Pin
Tristan Rhodes22-Nov-03 1:32
Tristan Rhodes22-Nov-03 1:32 
GeneralRe: Icon Background Pixels Pin
Heath Stewart22-Nov-03 4:34
protectorHeath Stewart22-Nov-03 4:34 
GeneralRe: Icon Background Pixels Pin
Tristan Rhodes22-Nov-03 7:17
Tristan Rhodes22-Nov-03 7:17 
GeneralRe: Icon Background Pixels Pin
Heath Stewart22-Nov-03 11:21
protectorHeath Stewart22-Nov-03 11:21 
GeneralRe: Icon Background Pixels Pin
Tristan Rhodes22-Nov-03 12:09
Tristan Rhodes22-Nov-03 12:09 
GeneralRe: Icon Background Pixels Pin
Heath Stewart24-Nov-03 3:43
protectorHeath Stewart24-Nov-03 3:43 
GeneralListing ODBC sources in a drop-down list box Pin
NikV22-Nov-03 1:28
NikV22-Nov-03 1:28 
GeneralRe: Listing ODBC sources in a drop-down list box Pin
Heath Stewart22-Nov-03 4:53
protectorHeath Stewart22-Nov-03 4:53 
GeneralRe: Listing ODBC sources in a drop-down list box Pin
NikV22-Nov-03 12:49
NikV22-Nov-03 12:49 
GeneralRe: Listing ODBC sources in a drop-down list box Pin
Heath Stewart24-Nov-03 3:49
protectorHeath Stewart24-Nov-03 3:49 
GeneralRe: Listing ODBC sources in a drop-down list box Pin
Nick Parker23-Nov-03 3:22
protectorNick Parker23-Nov-03 3:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.