Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
AnswerRe: Database Backups Multi-Threading Pin
led mike9-Oct-07 6:00
led mike9-Oct-07 6:00 
GeneralRe: Database Backups Multi-Threading Pin
jikubhai9-Oct-07 19:15
jikubhai9-Oct-07 19:15 
GeneralRe: Database Backups Multi-Threading Pin
led mike10-Oct-07 4:40
led mike10-Oct-07 4:40 
QuestionSorting a ListView by more than one column Pin
scotlandc9-Oct-07 5:32
scotlandc9-Oct-07 5:32 
AnswerRe: Sorting a ListView by more than one column Pin
led mike9-Oct-07 6:05
led mike9-Oct-07 6:05 
AnswerRe: Sorting a ListView by more than one column Pin
Luc Pattyn9-Oct-07 6:10
sitebuilderLuc Pattyn9-Oct-07 6:10 
AnswerRe: Sorting a ListView by more than one column Pin
mav.northwind9-Oct-07 19:18
mav.northwind9-Oct-07 19:18 
Questionn00b file manipulation help.. Pin
Dio229-Oct-07 5:14
Dio229-Oct-07 5:14 
I need to safely open a text file and send its contents to a textbox, if it doesnt exist i need to create it and then open it and show nothing in the textbox. I keep getting a "file is in use by another process" error.. here's my code..
TextReader fstream;

fp = filepath;

try
{
    fstream = new StreamReader(fp);
}
catch (System.IO.FileNotFoundException)
{
    File.CreateText(fp);
    fstream = new StreamReader(fp);
}

bool done = false;
while(!done)
{
  Alert = fstream.ReadLine();
  if(Alert = null)
  {
      done = true;
  else
  {
      textBox1.AppendText(Alert + "\r\n");
  }
}
fstream.Close();

AnswerRe: n00b file manipulation help.. Pin
led mike9-Oct-07 6:06
led mike9-Oct-07 6:06 
GeneralRe: n00b file manipulation help.. Pin
Dio229-Oct-07 7:36
Dio229-Oct-07 7:36 
GeneralRe: n00b file manipulation help.. Pin
led mike9-Oct-07 7:50
led mike9-Oct-07 7:50 
Questionreflection + events Pin
john349-Oct-07 4:47
john349-Oct-07 4:47 
AnswerRe: reflection + events Pin
led mike9-Oct-07 6:11
led mike9-Oct-07 6:11 
QuestionUse of @ in a variable name Pin
sa_runner9-Oct-07 4:15
sa_runner9-Oct-07 4:15 
AnswerRe: Use of @ in a variable name Pin
Not Active9-Oct-07 4:42
mentorNot Active9-Oct-07 4:42 
AnswerRe: Use of @ in a variable name Pin
Pete O'Hanlon9-Oct-07 4:54
mvePete O'Hanlon9-Oct-07 4:54 
AnswerRe: Use of @ in a variable name Pin
Urs Enzler9-Oct-07 5:01
Urs Enzler9-Oct-07 5:01 
AnswerRe: Use of @ in a variable name Pin
Guffa9-Oct-07 7:38
Guffa9-Oct-07 7:38 
GeneralRe: Use of @ in a variable name Pin
Not Active9-Oct-07 8:18
mentorNot Active9-Oct-07 8:18 
GeneralRe: Use of @ in a variable name Pin
Dan Neely9-Oct-07 8:48
Dan Neely9-Oct-07 8:48 
GeneralRe: Use of @ in a variable name Pin
Not Active9-Oct-07 8:56
mentorNot Active9-Oct-07 8:56 
GeneralRe: Use of @ in a variable name Pin
sa_runner9-Oct-07 10:54
sa_runner9-Oct-07 10:54 
QuestionGlobal odbc Connection? Pin
wjtaylor9-Oct-07 4:12
wjtaylor9-Oct-07 4:12 
AnswerRe: Global odbc Connection? Pin
Phil J Pearson9-Oct-07 4:54
Phil J Pearson9-Oct-07 4:54 
QuestionSystem.Web.UI.Page, get page object from URI Pin
Mogyi9-Oct-07 4:09
Mogyi9-Oct-07 4:09 

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.