Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: File sharing query Pin
Dave Kreskowiak7-Jun-04 15:35
mveDave Kreskowiak7-Jun-04 15:35 
If the other app has the file opened DenyShareRead at the least, you're screwed. The other problem is that you have to request that the file be opened with Shared Read/Write access. If the other open opens and closes the file frequently, you have to open the file with Shared access so the other app won't fail when it tries to open the file. The FileOpen method does not do this. Instead, you'll have to use the FileStream class to open the file:
FileStream myFileStream = New FileStream("C:\myFile.txt", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);

Now, the rub is that you can request Shared access to the file, but it only takes effect for subsequent requests by other processes (apps) to open the file. It will NOT give you access to a file that is opened and locked by another process.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

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 
GeneralRe: books Pin
Heath Stewart8-Jun-04 3:20
protectorHeath Stewart8-Jun-04 3:20 

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.