Click here to Skip to main content
15,896,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: global Variables?? Pin
ILoveCS2-Aug-04 15:36
ILoveCS2-Aug-04 15:36 
GeneralRe: global Variables?? Pin
Colin Angus Mackay2-Aug-04 23:01
Colin Angus Mackay2-Aug-04 23:01 
Questionhow to "refocus" a TextBox Pin
Stephan Wright1-Aug-04 21:25
Stephan Wright1-Aug-04 21:25 
Answersolved(Re: how to "refocus" a TextBox) Pin
Stephan Wright1-Aug-04 21:42
Stephan Wright1-Aug-04 21:42 
GeneralRe: solved(Re: how to "refocus" a TextBox) Pin
exhaulted1-Aug-04 22:40
exhaulted1-Aug-04 22:40 
QuestionWhy there appear exception when save axWebBrowser's content ? Pin
Anonymous1-Aug-04 21:13
Anonymous1-Aug-04 21:13 
AnswerRe: Why there appear exception when save axWebBrowser's content ? Pin
BeiJing20081-Aug-04 21:21
BeiJing20081-Aug-04 21:21 
GeneralRe: Why there appear exception when save axWebBrowser's content ? Pin
Paul Evans1-Aug-04 22:21
Paul Evans1-Aug-04 22:21 
It sounds like you cannot change the file because something has a lock on it - possibly your own program.

First be sure to close the file stream (don't just rely on it falling out of scope to close it). Also do a try-catch-finally block around the save, so you can attempt to clean up your file object properly even on the exeception.

If that doesn't work try to not load up the document in your browser control. Just save it and try opening it up in IE. Then keep it open and try saving again. That way you can see if it's your application in particular that is locking the file or something else.



/**********************************
Paul Evans, Dorset, UK.
**********************************/

GeneralRe: Why there appear exception when save axWebBrowser's content ? Pin
BeiJing20081-Aug-04 23:42
BeiJing20081-Aug-04 23:42 
QuestionRichTextBox: Index of the first and last char we see in it ? Pin
evdoxos1-Aug-04 20:30
evdoxos1-Aug-04 20:30 
AnswerRe: RichTextBox: Index of the first and last char we see in it ? Pin
mav.northwind1-Aug-04 21:01
mav.northwind1-Aug-04 21:01 
GeneralRe: RichTextBox: Index of the first and last char we see in it ? Pin
evdoxos1-Aug-04 22:15
evdoxos1-Aug-04 22:15 
GeneralReturn Values Pin
JayJ1-Aug-04 20:14
JayJ1-Aug-04 20:14 
GeneralRe: Return Values Pin
Colin Angus Mackay1-Aug-04 20:16
Colin Angus Mackay1-Aug-04 20:16 
GeneralRe: Return Values Pin
GuruPasx1-Aug-04 20:28
GuruPasx1-Aug-04 20:28 
GeneralRe: Return Values Pin
JayJ1-Aug-04 20:39
JayJ1-Aug-04 20:39 
GeneralRe: Return Values Pin
evdoxos1-Aug-04 22:38
evdoxos1-Aug-04 22:38 
Generalstop an asynchronous server Pin
khchan1-Aug-04 18:44
khchan1-Aug-04 18:44 
GeneralHTTP Post problems.... Pin
khchan1-Aug-04 18:32
khchan1-Aug-04 18:32 
QuestionHow to query memory consumption of... Pin
devvvy1-Aug-04 18:10
devvvy1-Aug-04 18:10 
Questionhow to install my database project Pin
shdelpiero1-Aug-04 18:01
shdelpiero1-Aug-04 18:01 
AnswerRe: how to install my database project Pin
Norman-Timo1-Aug-04 19:50
Norman-Timo1-Aug-04 19:50 
AnswerRe: how to install my database project Pin
sreejith ss nair1-Aug-04 23:28
sreejith ss nair1-Aug-04 23:28 
GeneralCompiler/Interpreter Pin
softp_vc1-Aug-04 18:00
softp_vc1-Aug-04 18:00 
GeneralRe: Compiler/Interpreter Pin
Colin Angus Mackay1-Aug-04 20:24
Colin Angus Mackay1-Aug-04 20:24 

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.