Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: Detect MouseNotMove event Pin
baranils21-Sep-08 10:54
baranils21-Sep-08 10:54 
GeneralRe: Detect MouseNotMove event Pin
Mark Salsbery21-Sep-08 14:37
Mark Salsbery21-Sep-08 14:37 
GeneralRe: Detect MouseNotMove event Pin
baranils21-Sep-08 19:38
baranils21-Sep-08 19:38 
QuestionDetecting thumb drive insertion and suppressing Autorun. Pin
ihaxxu20-Sep-08 9:05
ihaxxu20-Sep-08 9:05 
AnswerRe: Detecting thumb drive insertion and suppressing Autorun. Pin
Perspx20-Sep-08 9:26
Perspx20-Sep-08 9:26 
GeneralRe: Detecting thumb drive insertion and suppressing Autorun. Pin
ihaxxu21-Sep-08 10:33
ihaxxu21-Sep-08 10:33 
QuestionPls pls pls help me been working on it for weeks Pin
yefeng_law20-Sep-08 7:16
yefeng_law20-Sep-08 7:16 
AnswerRe: Pls pls pls help me been working on it for weeks Pin
Harvey Saayman20-Sep-08 9:45
Harvey Saayman20-Sep-08 9:45 
Because your new here and to programming i wont be too sarcastic but here area a few pointers when posting here...

1.) Please use a subject related to your question
2.) Please use pre tags when posting code

Have a look at my article - How to use the code project forums[^]


Now on to your question Smile | :)

Your trying to get the data from a flat text file, and these can only be accessed by one program / thread / object at a time. Thats why you get the FileAccessException, because the program that logs the signal strenght is constantly updating the file.

Now that i think about it, you can open a file that a program is writing too and view it in notepad... so u might be able to do this, as long as you dont try to write to the file. What strikes me as strange in your code is your using just the stream reader... maybe this is the problem... try this

FileStream fs = new FileStream(@"c:\measurement.log", FileMode.Open);
StreamReader reader = new StreamReader(fs);

string fileContents = reader.ReadToEnd();


as for the graphical part, have a look at GDI+

it involves the use of the OnPaint(object Sender, EventArgs e) event handler of a component like a panel, because youll be updating it continuously your going to have to paint on a Double Buffered Panel so that it wont flicker!

Well that should keep u busy for a while if this is your 1st C# program, if u have any questions ill be glad to help if i can.

Good luck!

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL

you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111

GeneralRe: Pls pls pls help me been working on it for weeks Pin
Colin Angus Mackay20-Sep-08 12:15
Colin Angus Mackay20-Sep-08 12:15 
GeneralRe: Pls pls pls help me been working on it for weeks Pin
yefeng_law20-Sep-08 19:09
yefeng_law20-Sep-08 19:09 
GeneralRe: Pls pls pls help me been working on it for weeks Pin
yefeng_law20-Sep-08 18:46
yefeng_law20-Sep-08 18:46 
QuestionGet refference to active excel instance and callback? Pin
s-p-s20-Sep-08 5:23
s-p-s20-Sep-08 5:23 
QuestionCapture a link click to open a web page... Pin
devzav20-Sep-08 4:51
devzav20-Sep-08 4:51 
AnswerRe: Capture a link click to open a web page... Pin
#realJSOP20-Sep-08 9:49
professional#realJSOP20-Sep-08 9:49 
QuestionMultiQC & QCFile-LinkA interfacing. Pin
Dinker Batra20-Sep-08 3:26
Dinker Batra20-Sep-08 3:26 
AnswerRe: MultiQC & QCFile-LinkA interfacing. Pin
danmol20-Sep-08 23:33
danmol20-Sep-08 23:33 
GeneralRe: MultiQC & QCFile-LinkA interfacing. Pin
danmol20-Sep-08 23:34
danmol20-Sep-08 23:34 
GeneralRe: MultiQC & QCFile-LinkA interfacing. Pin
Dinker Batra20-Sep-08 23:42
Dinker Batra20-Sep-08 23:42 
Questionretrieve a msaccess column description Pin
djjedi20-Sep-08 2:50
djjedi20-Sep-08 2:50 
AnswerRe: retrieve a msaccess column description Pin
Harvey Saayman20-Sep-08 9:47
Harvey Saayman20-Sep-08 9:47 
GeneralRe: retrieve a msaccess column description Pin
djjedi20-Sep-08 11:04
djjedi20-Sep-08 11:04 
GeneralRe: retrieve a msaccess column description Pin
Harvey Saayman20-Sep-08 11:12
Harvey Saayman20-Sep-08 11:12 
GeneralRe: retrieve a msaccess column description Pin
djjedi23-Sep-08 1:48
djjedi23-Sep-08 1:48 
QuestionHow to save with unique ID Pin
manju#12320-Sep-08 2:25
manju#12320-Sep-08 2:25 
AnswerRe: How to save with unique ID Pin
User 665820-Sep-08 2:39
User 665820-Sep-08 2:39 

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.