Click here to Skip to main content
15,897,519 members
Home / Discussions / C#
   

C#

 
Generalmaintain back the combobox item Pin
angels77714-Mar-08 1:57
angels77714-Mar-08 1:57 
Questionconsole application issue Pin
Pankaj Garg14-Mar-08 1:02
Pankaj Garg14-Mar-08 1:02 
GeneralRe: console application issue Pin
Rob Philpott14-Mar-08 1:15
Rob Philpott14-Mar-08 1:15 
GeneralAvoid file deletion Pin
Tanuja12314-Mar-08 0:14
Tanuja12314-Mar-08 0:14 
GeneralRe: Avoid file deletion Pin
Rob Philpott14-Mar-08 0:25
Rob Philpott14-Mar-08 0:25 
GeneralRe: Avoid file deletion [modified] Pin
Nilesh Hapse14-Mar-08 1:01
Nilesh Hapse14-Mar-08 1:01 
GeneralRe: Avoid file deletion Pin
Rob Philpott14-Mar-08 1:05
Rob Philpott14-Mar-08 1:05 
GeneralRe: Avoid file deletion Pin
Programm3r14-Mar-08 0:29
Programm3r14-Mar-08 0:29 
snoby wrote:
How can i prevent user from deleting a file when the file is under use by another process ?


The file cannot be deleted while an application is using it. What is ... well part of Windows. Run an application and try to delete it ... you cant.

Other wise if I am not understanding you correctly, you can open the file for reading and only after the appliation has finished with the file, you can close the file.
something like ...
// this is just a concept ...
form onload()
   open file for reading
form_onclose()
   close file


Hope it helps ...
Regards,



The only programmers that are better that C programmers are those who code in 1's and 0's Green Alien | [Alien]


Smile | :) Programm3r

My Blog: ^_^

GeneralRe: Avoid file deletion Pin
Lutosław14-Mar-08 3:02
Lutosław14-Mar-08 3:02 
GeneralRe: Avoid file deletion Pin
Dave Kreskowiak14-Mar-08 7:13
mveDave Kreskowiak14-Mar-08 7:13 
QuestionTextWriter.WriteLine() Pin
nilam247714-Mar-08 0:06
nilam247714-Mar-08 0:06 
QuestionRe: TextWriter.WriteLine() Pin
Programm3r14-Mar-08 0:16
Programm3r14-Mar-08 0:16 
QuestionRe: TextWriter.WriteLine() Pin
nilam247714-Mar-08 0:20
nilam247714-Mar-08 0:20 
GeneralRe: TextWriter.WriteLine() Pin
phannon8614-Mar-08 0:22
professionalphannon8614-Mar-08 0:22 
QuestionRe: TextWriter.WriteLine() Pin
nilam247714-Mar-08 0:27
nilam247714-Mar-08 0:27 
GeneralRe: TextWriter.WriteLine() Pin
Rob Philpott14-Mar-08 0:27
Rob Philpott14-Mar-08 0:27 
QuestionRe: TextWriter.WriteLine() Pin
nilam247714-Mar-08 0:45
nilam247714-Mar-08 0:45 
GeneralRe: TextWriter.WriteLine() Pin
Rob Philpott14-Mar-08 0:59
Rob Philpott14-Mar-08 0:59 
GeneralRe: TextWriter.WriteLine() Pin
Rob Philpott14-Mar-08 1:00
Rob Philpott14-Mar-08 1:00 
QuestionRe: TextWriter.WriteLine() Pin
nilam247714-Mar-08 1:18
nilam247714-Mar-08 1:18 
QuestionObject is currently in use elsewhere [modified] Pin
Programm3r14-Mar-08 0:03
Programm3r14-Mar-08 0:03 
GeneralRe: Object is currently in use elsewhere Pin
Bekjong14-Mar-08 0:39
Bekjong14-Mar-08 0:39 
QuestionRe: Object is currently in use elsewhere Pin
Programm3r14-Mar-08 0:52
Programm3r14-Mar-08 0:52 
GeneralRe: Object is currently in use elsewhere Pin
Bekjong14-Mar-08 1:16
Bekjong14-Mar-08 1:16 
GeneralRe: Object is currently in use elsewhere Pin
Programm3r14-Mar-08 1:42
Programm3r14-Mar-08 1:42 

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.