Click here to Skip to main content
15,906,335 members
Home / Discussions / C#
   

C#

 
AnswerRe: Simple Database Problem Pin
KaptinKrunch18-Sep-05 17:12
KaptinKrunch18-Sep-05 17:12 
AnswerRe: Simple Database Problem Pin
KaptinKrunch18-Sep-05 17:14
KaptinKrunch18-Sep-05 17:14 
AnswerRe: Simple Database Problem Pin
FusionCoding19-Sep-05 3:20
FusionCoding19-Sep-05 3:20 
Questiongetting file bytesize Pin
g00fyman18-Sep-05 16:40
g00fyman18-Sep-05 16:40 
AnswerRe: getting file bytesize Pin
Ashok Dhamija18-Sep-05 18:14
Ashok Dhamija18-Sep-05 18:14 
GeneralRe: getting file bytesize Pin
g00fyman18-Sep-05 18:45
g00fyman18-Sep-05 18:45 
GeneralRe: getting file bytesize Pin
g00fyman18-Sep-05 18:50
g00fyman18-Sep-05 18:50 
GeneralRe: getting file bytesize Pin
Ashok Dhamija18-Sep-05 19:12
Ashok Dhamija18-Sep-05 19:12 
Try using Refresh() method of FileInfo class before calling the Length property every time you want to update it, i.e.,
fiMyFile.Refresh();
lLengthMyFile = fiMyFile.Length;

Though I have not checked it in the context of your application (but it worked in my application having some different requirements), it may work if the character is being written in the file as it is being typed.

Another way out could be to use the Length property of FileInfo as above as and when you save the file. And, after that as the characters are being typed, you keep a count of the characters / bytes of the unsaved data and add it to the Length calculated earlier for the saved data.

I hope it works.

Regards,
Ashok Dhamija
_____________________________
Padam Technologies

-- modified at 1:13 Monday 19th September, 2005
QuestionNeed 3 Pens Reg, Green and Blue Pin
Anonymous18-Sep-05 15:04
Anonymous18-Sep-05 15:04 
AnswerRe: Need 3 Pens Reg, Green and Blue Pin
FusionCoding18-Sep-05 17:08
FusionCoding18-Sep-05 17:08 
AnswerRe: Need 3 Pens Reg, Green and Blue Pin
Christian Graus18-Sep-05 17:50
protectorChristian Graus18-Sep-05 17:50 
QuestionDraw larger drawings Pin
radic.feng18-Sep-05 15:00
radic.feng18-Sep-05 15:00 
AnswerRe: Draw larger drawings Pin
radic.feng18-Sep-05 16:51
radic.feng18-Sep-05 16:51 
QuestionProblems with Setup Project Pin
surfman1918-Sep-05 14:29
surfman1918-Sep-05 14:29 
GeneralRe: Problems with Setup Project Pin
seee sharp18-Sep-05 17:44
seee sharp18-Sep-05 17:44 
GeneralRe: Problems with Setup Project Pin
surfman1919-Sep-05 0:03
surfman1919-Sep-05 0:03 
Questionserial number for my application Pin
Sasuko18-Sep-05 12:18
Sasuko18-Sep-05 12:18 
AnswerRe: serial number for my application Pin
surfman1918-Sep-05 14:26
surfman1918-Sep-05 14:26 
AnswerRe: serial number for my application Pin
Ashok Dhamija18-Sep-05 18:46
Ashok Dhamija18-Sep-05 18:46 
QuestionColumns Pin
Taurian11018-Sep-05 11:56
Taurian11018-Sep-05 11:56 
AnswerRe: Columns Pin
deep718-Sep-05 18:34
deep718-Sep-05 18:34 
QuestionUSB device event Pin
Libor Tinka18-Sep-05 5:30
Libor Tinka18-Sep-05 5:30 
AnswerRe: USB device event Pin
Lapje18-Sep-05 9:07
Lapje18-Sep-05 9:07 
AnswerRe: USB device event Pin
Anonymous1-Oct-05 16:14
Anonymous1-Oct-05 16:14 
AnswerRe: USB device event Pin
eggie530-Oct-05 5:25
eggie530-Oct-05 5:25 

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.