Click here to Skip to main content
16,015,072 members
Home / Discussions / C#
   

C#

 
QuestionFlicker with transparent labels on different panels Pin
Sukhjinder_K7-May-08 23:08
Sukhjinder_K7-May-08 23:08 
AnswerRe: Flicker with transparent labels on different panels Pin
phannon867-May-08 23:10
professionalphannon867-May-08 23:10 
GeneralNo change on Suspend/Resume Layout Pin
Sukhjinder_K7-May-08 23:16
Sukhjinder_K7-May-08 23:16 
GeneralRe: No change on Suspend/Resume Layout Pin
phannon867-May-08 23:26
professionalphannon867-May-08 23:26 
GeneralDoesnt work Pin
Sukhjinder_K7-May-08 23:28
Sukhjinder_K7-May-08 23:28 
GeneralSome workarounds... Pin
Sukhjinder_K9-May-08 2:54
Sukhjinder_K9-May-08 2:54 
QuestionDrag & Drop & More Pin
willy20057-May-08 23:07
willy20057-May-08 23:07 
QuestionHow to delete Cookies Pin
Waheed Ur Rehman7-May-08 22:38
Waheed Ur Rehman7-May-08 22:38 
i am using the following code

System.IO.File.SetAttributes(Environment.GetFolderPath(
Environment.SpecialFolder.Cookies ).ToString(), FileAttributes.Normal);

DirectoryInfo directory = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.Cookies));
if (directory.Exists)
DeleteFiles(directory);

public void DeleteFiles( DirectoryInfo directory)
{
FileInfo[] info = directory.GetFiles();
foreach (FileInfo file in directory.GetFiles())
{
try
{
System.IO.File.SetAttributes(file.FullName, FileAttributes.Normal);

file.Delete();
}
catch (Exception ex)
{

}
}
foreach (DirectoryInfo dir in directory.GetDirectories())
{
try
{
DeleteFiles(dir);
}
catch (Exception ex)
{
}
}



}
This code is deleting all files in the Cookie folder but the problem is index.dat file remains there it gives error
Used by another person or program
What should i do to delete that file
Thanks
AnswerRe: How to delete Cookies Pin
Ashfield7-May-08 23:56
Ashfield7-May-08 23:56 
GeneralRe: How to delete Cookies Pin
Waheed Ur Rehman9-May-08 2:04
Waheed Ur Rehman9-May-08 2:04 
AnswerRe: How to delete Cookies Pin
Ashfield9-May-08 22:37
Ashfield9-May-08 22:37 
GeneralRe: How to delete Cookies Pin
boblaw9911-May-08 16:16
boblaw9911-May-08 16:16 
QuestionProcess.Start() Issue Pin
Harvey Saayman7-May-08 22:27
Harvey Saayman7-May-08 22:27 
QuestionRe: Process.Start() Issue Cont.... Pin
Harvey Saayman7-May-08 22:38
Harvey Saayman7-May-08 22:38 
AnswerRe: Process.Start() Issue Pin
Spunky Coder7-May-08 22:39
Spunky Coder7-May-08 22:39 
GeneralRe: Process.Start() Issue Pin
Harvey Saayman7-May-08 22:43
Harvey Saayman7-May-08 22:43 
GeneralRe: Process.Start() Issue Pin
Spunky Coder7-May-08 22:48
Spunky Coder7-May-08 22:48 
GeneralRe: Process.Start() Issue Pin
Harvey Saayman7-May-08 22:50
Harvey Saayman7-May-08 22:50 
GeneralRe: Process.Start() Issue Pin
Spunky Coder7-May-08 22:46
Spunky Coder7-May-08 22:46 
QuestionCapture Batch-File Data Pin
Reelix7-May-08 20:12
Reelix7-May-08 20:12 
AnswerRe: Capture Batch-File Data Pin
Giorgi Dalakishvili7-May-08 20:57
mentorGiorgi Dalakishvili7-May-08 20:57 
AnswerRe: Capture Batch-File Data Pin
dan!sh 7-May-08 20:59
professional dan!sh 7-May-08 20:59 
GeneralRe: Capture Batch-File Data Pin
Reelix7-May-08 22:17
Reelix7-May-08 22:17 
GeneralRe: Capture Batch-File Data Pin
Harvey Saayman7-May-08 23:45
Harvey Saayman7-May-08 23:45 
QuestionHow to use app.config file for set database Connection Pin
sanpune7-May-08 19:59
sanpune7-May-08 19:59 

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.