Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
QuestionPass variable from GridViewRowEvent method to DataListItemEvent method in C# using ASP.NET Pin
chris.hagelstein5-Apr-10 6:43
chris.hagelstein5-Apr-10 6:43 
Questionftp server folders Pin
Priya Prk5-Apr-10 6:23
Priya Prk5-Apr-10 6:23 
AnswerRe: ftp server folders Pin
Not Active5-Apr-10 6:47
mentorNot Active5-Apr-10 6:47 
GeneralRe: ftp server folders Pin
Priya Prk5-Apr-10 21:16
Priya Prk5-Apr-10 21:16 
GeneralRe: ftp server folders Pin
Not Active6-Apr-10 2:47
mentorNot Active6-Apr-10 2:47 
Questionget the file type of a file Pin
aleroot5-Apr-10 4:32
aleroot5-Apr-10 4:32 
AnswerRe: get the file type of a file [modified] Pin
PIEBALDconsult5-Apr-10 4:53
mvePIEBALDconsult5-Apr-10 4:53 
GeneralRe: get the file type of a file Pin
aleroot5-Apr-10 7:15
aleroot5-Apr-10 7:15 
GeneralRe: get the file type of a file [modified] Pin
harold aptroot5-Apr-10 7:19
harold aptroot5-Apr-10 7:19 
GeneralRe: get the file type of a file Pin
harold aptroot5-Apr-10 12:45
harold aptroot5-Apr-10 12:45 
GeneralRe: get the file type of a file Pin
Dave Kreskowiak5-Apr-10 7:54
mveDave Kreskowiak5-Apr-10 7:54 
GeneralRe: get the file type of a file Pin
PIEBALDconsult5-Apr-10 8:48
mvePIEBALDconsult5-Apr-10 8:48 
GeneralRe: get the file type of a file Pin
Dave Kreskowiak5-Apr-10 10:19
mveDave Kreskowiak5-Apr-10 10:19 
GeneralRe: get the file type of a file Pin
PIEBALDconsult5-Apr-10 12:02
mvePIEBALDconsult5-Apr-10 12:02 
AnswerRe: get the file type of a file Pin
harold aptroot5-Apr-10 5:11
harold aptroot5-Apr-10 5:11 
GeneralRe: get the file type of a file Pin
PIEBALDconsult5-Apr-10 9:29
mvePIEBALDconsult5-Apr-10 9:29 
GeneralRe: get the file type of a file Pin
harold aptroot5-Apr-10 12:35
harold aptroot5-Apr-10 12:35 
AnswerRe: get the file type of a file Pin
AspDotNetDev5-Apr-10 11:40
protectorAspDotNetDev5-Apr-10 11:40 
QuestionIs there any lnk parser in C#? Pin
newcoder19995-Apr-10 4:07
newcoder19995-Apr-10 4:07 
QuestionWhite Flicker When Observing an Application Using Double Buffer Over RDP Pin
Catfish5405-Apr-10 3:33
Catfish5405-Apr-10 3:33 
QuestionFileSystemWatcher HELP PLEASE !! Pin
Rikq4-Apr-10 21:21
Rikq4-Apr-10 21:21 
AnswerRe: FileSystemWatcher HELP PLEASE !! Pin
OriginalGriff4-Apr-10 21:54
mveOriginalGriff4-Apr-10 21:54 
1) Read the bit at the top of the page: "How to get an answer".

2) Don't post your entire app - no-one is going to read it.

3) If you post code, use the "code block" widget (or <pre> </pre> codes) to preserve the formatting. The difference is:
private void frmNotifier_FormClosing(object sender, FormClosingEventArgs e)<br />
{<br />
m_bIsWatching = false;<br />
m_Watcher.EnableRaisingEvents = false;<br />
m_Watcher.Dispose();<br />
<br />
string date, time,date1,time1;<br />
<br />
date =DateTime.Now.ToString("ddMMyyyy");<br />
time = DateTime.Now.ToString("hhmm tt");<br />
<br />
if (Directory.Exists("c:\\FileChangeLog"))<br />
{<br />
<br />
<br />
<br />
}<br />
else {<br />
Directory.CreateDirectory("C:\\FileChangeLog");<br />
}<br />
<br />
<br />
StreamWriter sw = new StreamWriter(@"c:\FileChangeLog\" + date + "@" + time + "log.txt");<br />
<br />
date1 = DateTime.Now.ToString("dd/MM/yyyy");<br />
time1 = DateTime.Now.ToString("hh:mm:ss:tt");<br />
lstNotification.Items.Add("Program ended at: " + date1 + " , " + time1);<br />
<br />
foreach (string sItem in lstNotification.Items)<br />
{<br />
sw.WriteLine(sItem);<br />
}<br />
sw.Close();<br />
}
and
private void frmNotifier_FormClosing(object sender, FormClosingEventArgs e)
   {
   m_bIsWatching = false;
   m_Watcher.EnableRaisingEvents = false;
   m_Watcher.Dispose();

   string date, time,date1,time1;
   date = DateTime.Now.ToString("ddMMyyyy");
   time = DateTime.Now.ToString("hhmm tt");

   if (Directory.Exists("c:\\FileChangeLog"))
      {
      }
   else 
      {
      Directory.CreateDirectory("C:\\FileChangeLog");
      }
   StreamWriter sw = new StreamWriter(@"c:\FileChangeLog\" + date + "@" + time + "log.txt");

   date1 = DateTime.Now.ToString("dd/MM/yyyy");
   time1 = DateTime.Now.ToString("hh:mm:ss:tt");
   lstNotification.Items.Add("Program ended at: " + date1 + " , " + time1);

   foreach (string sItem in lstNotification.Items)
      {
      sw.WriteLine(sItem);
      }
   sw.Close();
   }
Which would you rather read?

4) Be specific. What is your problem, not "some-one write it for me".
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace

C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

AnswerRe: FileSystemWatcher HELP PLEASE !! Pin
FyreWyrm5-Apr-10 16:12
FyreWyrm5-Apr-10 16:12 
QuestionHow to send Email in C# through the Exchange Server? Pin
ravis194-Apr-10 21:00
ravis194-Apr-10 21:00 
AnswerRe: How to send Email in C# through the Exchange Server? Pin
Abhinav S4-Apr-10 21:49
Abhinav S4-Apr-10 21:49 

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.