Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: Change Window Title Form Font Pin
Heath Stewart8-Jun-04 4:06
protectorHeath Stewart8-Jun-04 4:06 
GeneralRe: Change Window Title Form Font Pin
Dave Kreskowiak8-Jun-04 4:10
mveDave Kreskowiak8-Jun-04 4:10 
GeneralRe: Change Window Title Form Font Pin
Aaron Eldreth8-Jun-04 4:23
Aaron Eldreth8-Jun-04 4:23 
GeneralDatView DataBinding using Parent relation Pin
Corneliu Tusnea7-Jun-04 15:32
Corneliu Tusnea7-Jun-04 15:32 
GeneralCreating Financial Chart control using C# Pin
sgeesala7-Jun-04 15:06
sgeesala7-Jun-04 15:06 
GeneralRe: Creating Financial Chart control using C# Pin
Dave Kreskowiak7-Jun-04 15:47
mveDave Kreskowiak7-Jun-04 15:47 
GeneralRe: Creating Financial Chart control using C# Pin
Heath Stewart8-Jun-04 3:39
protectorHeath Stewart8-Jun-04 3:39 
GeneralFile sharing query Pin
benglish727-Jun-04 14:49
benglish727-Jun-04 14:49 
Hi, I'm writing a program that attempts to open a file stream using FileInfo.OpenRead(), this seems to fail when another application is accessing the same file. As I need to be able to read this file whilst another has it open or access it, is there anyway I can get it to open instead of throwing IOException in C#?
Thanks.
Here's a code snippet

//check file exists
System.IO.FileInfo info = new System.IO.FileInfo(sFileName);
if(info!=null&&info.Exists==true)
{
//ok, file exits, lets read it in...
try
{
System.IO.Stream stream = info.OpenRead();
//do stuff here
stream.Close();
}
catch(IOException exception)
{
}

GeneralRe: File sharing query Pin
Dave Kreskowiak7-Jun-04 15:35
mveDave Kreskowiak7-Jun-04 15:35 
GeneralRe: File sharing query Pin
benglish727-Jun-04 16:53
benglish727-Jun-04 16:53 
GeneralBig problem suffering from week Pin
IamADotNetGuy7-Jun-04 13:06
IamADotNetGuy7-Jun-04 13:06 
GeneralRe: Big problem suffering from week Pin
Heath Stewart8-Jun-04 3:32
protectorHeath Stewart8-Jun-04 3:32 
GeneralRe: Big problem suffering from week Pin
IamADotNetGuy8-Jun-04 3:46
IamADotNetGuy8-Jun-04 3:46 
GeneralButton click event Pin
sam chappidi7-Jun-04 12:36
sam chappidi7-Jun-04 12:36 
GeneralRe: Button click event Pin
Dave Kreskowiak7-Jun-04 13:31
mveDave Kreskowiak7-Jun-04 13:31 
GeneralRe: Button click event Pin
Heath Stewart8-Jun-04 3:28
protectorHeath Stewart8-Jun-04 3:28 
GeneralNewbie help with menu's & Windows Pin
Anonymous7-Jun-04 12:08
Anonymous7-Jun-04 12:08 
GeneralRe: Newbie help with menu's & Windows Pin
bneacetp7-Jun-04 14:25
bneacetp7-Jun-04 14:25 
GeneralRe: Newbie help with menu's & Windows Pin
Heath Stewart8-Jun-04 3:23
protectorHeath Stewart8-Jun-04 3:23 
Generalbooks Pin
surgeproof7-Jun-04 11:12
surgeproof7-Jun-04 11:12 
GeneralRe: books Pin
Heath Stewart7-Jun-04 11:20
protectorHeath Stewart7-Jun-04 11:20 
GeneralRe: books Pin
Dave Kreskowiak7-Jun-04 12:00
mveDave Kreskowiak7-Jun-04 12:00 
GeneralRe: books Pin
Uwe Keim7-Jun-04 22:18
sitebuilderUwe Keim7-Jun-04 22:18 
GeneralRe: books Pin
Heath Stewart8-Jun-04 2:34
protectorHeath Stewart8-Jun-04 2:34 
GeneralRe: books Pin
Uwe Keim8-Jun-04 2:41
sitebuilderUwe Keim8-Jun-04 2:41 

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.