Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
AnswerRe: VS 2005 formatting of constructor initializers Pin
Steve Maier30-Nov-05 4:19
professionalSteve Maier30-Nov-05 4:19 
GeneralRe: VS 2005 formatting of constructor initializers Pin
Alvaro Mendez30-Nov-05 5:25
Alvaro Mendez30-Nov-05 5:25 
QuestionSelected listview items losing highlight when the lv loses focus Pin
Dan Neely30-Nov-05 3:47
Dan Neely30-Nov-05 3:47 
AnswerRe: Selected listview items losing highlight when the lv loses focus Pin
Sean Michael Murphy30-Nov-05 5:17
Sean Michael Murphy30-Nov-05 5:17 
QuestionAuto Login on Webpage using C# Pin
mjmcinto30-Nov-05 2:54
mjmcinto30-Nov-05 2:54 
QuestionRe: Auto Login on Webpage using C# Pin
mjmcinto30-Nov-05 8:58
mjmcinto30-Nov-05 8:58 
QuestionAssigning commandbar images Pin
Daniel Ion30-Nov-05 1:18
Daniel Ion30-Nov-05 1:18 
QuestionC# Add-in file synchronisation problem Pin
tartancli30-Nov-05 0:52
tartancli30-Nov-05 0:52 
Hi,

I have some kind of synchronisation problem. I have a C# Word Add-in,
and in it I want to close a file and then delete it. I use code as follows,

// Close the file
pDoc.Close(ref saveChanges, ref missing, ref missing);

// Delete the file
System.IO.File.Delete(pDocStr);

This works fine for a small file, but for a very big file I catch an
exception that says that "the file x.doc being used by another
process".

Anybody any suggestions for handling the synchronisation?



Thanks in advance
AnswerRe: Need you help Pin
Hiral Patel30-Nov-05 23:05
Hiral Patel30-Nov-05 23:05 
GeneralRe: Need you help Pin
tartancli5-Dec-05 9:48
tartancli5-Dec-05 9:48 
GeneralRe: Need you help Pin
Hiral Patel5-Dec-05 22:06
Hiral Patel5-Dec-05 22:06 
QuestionSystem.type Pin
theEder30-Nov-05 0:38
theEder30-Nov-05 0:38 
AnswerRe: System.type Pin
Andy Brummer1-Dec-05 8:26
sitebuilderAndy Brummer1-Dec-05 8:26 
GeneralRe: System.type Pin
theEder1-Dec-05 19:11
theEder1-Dec-05 19:11 
QuestionApi hooking Pin
razi3lll30-Nov-05 0:17
razi3lll30-Nov-05 0:17 
AnswerRe: Api hooking Pin
Landarzar30-Nov-05 7:55
Landarzar30-Nov-05 7:55 
GeneralRe: Api hooking Pin
razi3lll30-Nov-05 20:31
razi3lll30-Nov-05 20:31 
QuestionAssembly Question Pin
snouto29-Nov-05 23:59
snouto29-Nov-05 23:59 
AnswerRe: Assembly Question Pin
Rob Philpott30-Nov-05 1:02
Rob Philpott30-Nov-05 1:02 
QuestionAccess Second User Control Forms Objects Properties Pin
freshonlineMax29-Nov-05 23:16
freshonlineMax29-Nov-05 23:16 
AnswerRe: Access Second User Control Forms Objects Properties Pin
S. Senthil Kumar30-Nov-05 0:21
S. Senthil Kumar30-Nov-05 0:21 
GeneralRe: Access Second User Control Forms Objects Properties Pin
freshonlineMax30-Nov-05 4:00
freshonlineMax30-Nov-05 4:00 
QuestionCompute Method of Dataset Pin
meeram39529-Nov-05 22:50
meeram39529-Nov-05 22:50 
AnswerRe: Compute Method of Dataset Pin
freshonlineMax30-Nov-05 3:30
freshonlineMax30-Nov-05 3:30 
GeneralRe: Compute Method of Dataset Pin
meeram39530-Nov-05 16:10
meeram39530-Nov-05 16:10 

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.