Click here to Skip to main content
15,889,909 members
Home / Discussions / C#
   

C#

 
AnswerRe: GDI question ? Pin
Luc Pattyn9-Nov-09 2:21
sitebuilderLuc Pattyn9-Nov-09 2:21 
GeneralRe: GDI question ? Pin
Mohammad Dayyan9-Nov-09 2:24
Mohammad Dayyan9-Nov-09 2:24 
GeneralRe: GDI question ? Pin
Luc Pattyn9-Nov-09 2:28
sitebuilderLuc Pattyn9-Nov-09 2:28 
AnswerRe: GDI question ? Pin
Hristo-Bojilov9-Nov-09 3:52
Hristo-Bojilov9-Nov-09 3:52 
QuestionRegarding Crystal report & Windows service? Pin
Tridip Bhattacharjee9-Nov-09 1:47
professionalTridip Bhattacharjee9-Nov-09 1:47 
QuestionReading xlsx file in C# returning blank value Pin
bensonbenadict9-Nov-09 1:13
bensonbenadict9-Nov-09 1:13 
AnswerRe: Reading xlsx file in C# returning blank value Pin
Swetha S14-Jul-10 19:13
Swetha S14-Jul-10 19:13 
Questioni have problem with end of process Pin
E_Gold9-Nov-09 0:14
E_Gold9-Nov-09 0:14 
hi
i have problem with end of process.

i need to zip file - and after i zip - i need to do some thing with this zip file...

the problem is, although the messagebox appear - i noticed that the process is not end.

how i can know for sure that the process is end ?

my zip sample:

try{
if (File.Exists(@"c:\DaZIP\Bind.sdf"))
File.Delete(@"c:\DaZIP\Bind.sdf");
File.Copy(Application.StartupPath + @"\Bind.sdf", @"c:\DaZIP\Bind.sdf");
byte[] sampleBuffer = null;
ZipEntry sampleZipFile = null;
FileStream sampleFileStream = null;
ZipOutputStream sampleOutputStream = new ZipOutputStream(File.Create(Application.StartupPath + @"\Bind.zip"));
sampleOutputStream.Password = "12345";
sampleOutputStream.SetLevel(9);
foreach (string sampleFile in Directory.GetFiles(@"c:\DaZIP")) {
sampleZipFile = new ZipEntry(Path.GetFileName(sampleFile));
sampleOutputStream.PutNextEntry(sampleZipFile);
sampleFileStream = File.OpenRead(sampleFile);
sampleBuffer = new byte[sampleFileStream.Length];
sampleFileStream.Read(sampleBuffer, 0, sampleBuffer.Length);
sampleOutputStream.Write(sampleBuffer, 0, sampleBuffer.Length);
}
sampleOutputStream.Finish();
sampleOutputStream.Close();
}
catch (Exception ex){ MessageBox.Show(ex.Message ,"",0, MessageBoxIcon.Exclamation);
return;}
MessageBox.Show("End ZIP");

i work on VS2008 C# WinForm

i know that the process still work, because when i try to do somthing with the zip

file, i get error that the file is in use. and if i wait for 1-2 minute, i can do what i

want with this zip file.
AnswerRe: i have problem with end of process Pin
Luc Pattyn9-Nov-09 0:27
sitebuilderLuc Pattyn9-Nov-09 0:27 
QuestionC# with instant messenger Pin
Levisaxos9-Nov-09 0:07
Levisaxos9-Nov-09 0:07 
AnswerRe: C# with instant messenger Pin
Levisaxos9-Nov-09 1:22
Levisaxos9-Nov-09 1:22 
QuestionSpeech Recognition Pin
krinaljariwala8-Nov-09 23:44
krinaljariwala8-Nov-09 23:44 
AnswerMessage Closed Pin
8-Nov-09 23:51
stancrm8-Nov-09 23:51 
GeneralRe: Speech Recognition Pin
krinaljariwala11-Nov-09 19:29
krinaljariwala11-Nov-09 19:29 
QuestionCreate autoplay bots Pin
merger1238-Nov-09 23:34
merger1238-Nov-09 23:34 
AnswerRe: Create autoplay bots Pin
LimitedAtonement9-Nov-09 7:31
LimitedAtonement9-Nov-09 7:31 
QuestionRe: Create autoplay bots Pin
merger1239-Nov-09 21:13
merger1239-Nov-09 21:13 
AnswerRe: Create autoplay bots Pin
LimitedAtonement10-Nov-09 4:19
LimitedAtonement10-Nov-09 4:19 
GeneralRe: Create autoplay bots Pin
merger12310-Nov-09 21:27
merger12310-Nov-09 21:27 
QuestionGetting the cells data when clicked on it in gridview asp.net Pin
sure_suresh8-Nov-09 23:27
sure_suresh8-Nov-09 23:27 
Questionabout treeview, Pin
miss YY8-Nov-09 22:35
miss YY8-Nov-09 22:35 
AnswerRe: about treeview, Pin
Luc Pattyn8-Nov-09 23:16
sitebuilderLuc Pattyn8-Nov-09 23:16 
AnswerRe: about treeview, Pin
Shameel8-Nov-09 23:41
professionalShameel8-Nov-09 23:41 
GeneralRe: about treeview, Pin
miss YY9-Nov-09 0:13
miss YY9-Nov-09 0:13 
QuestionWeird problem in C#.NET [Solved ^_^] Pin
Bilg218-Nov-09 22:35
Bilg218-Nov-09 22:35 

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.