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

C#

 
AnswerRe: question about arrays Pin
donkaiser22-May-06 8:00
donkaiser22-May-06 8:00 
QuestionUrgent: Type casting String Property to String type Pin
kumar.bs19-May-06 4:47
kumar.bs19-May-06 4:47 
AnswerRe: Urgent: Type casting String Property to String type Pin
Josh Smith19-May-06 5:01
Josh Smith19-May-06 5:01 
AnswerRe: Urgent: Type casting String Property to String type Pin
kumar.bs19-May-06 5:06
kumar.bs19-May-06 5:06 
GeneralRe: Urgent: Type casting String Property to String type Pin
Josh Smith19-May-06 5:22
Josh Smith19-May-06 5:22 
GeneralRe: Urgent: Type casting String Property to String type Pin
leppie19-May-06 5:55
leppie19-May-06 5:55 
GeneralRe: Urgent: Type casting String Property to String type Pin
Josh Smith19-May-06 7:04
Josh Smith19-May-06 7:04 
QuestionFileSystemEventHandler arguments question. Pin
aquacadet19-May-06 4:46
aquacadet19-May-06 4:46 
I wrote this function to handle an exception for a FileSystemWatcher, so it gets called like this:

watchSamples01.Created += new FileSystemEventHandler(MoveFileFromSharedLog1);

where watchSamples01 is my FileSystemWatcher, and MoveFileFromSharedLog1 is my event handling function.

The method looks like this:
private static void MoveFileFromSharedLog1(object sender, System.IO.FileSystemEventArgs e)

My question is how do I send an additional parameter to my method? I would like to send an integer value to the MoveFileFromSharedLog1 method. If I try to add int x after System.IO.FileSystemEventArgs e I get this error:

Error 1 No overload for 'MoveFileFromSharedLog1' matches delegate 'System.IO.FileSystemEventHandler'

How should I do this?

AnswerRe: FileSystemEventHandler arguments question. Pin
Josh Smith19-May-06 4:59
Josh Smith19-May-06 4:59 
AnswerRe: FileSystemEventHandler arguments question. Pin
Stefan Troschuetz19-May-06 5:06
Stefan Troschuetz19-May-06 5:06 
GeneralRe: FileSystemEventHandler arguments question. Pin
aquacadet19-May-06 6:00
aquacadet19-May-06 6:00 
GeneralRe: FileSystemEventHandler arguments question. Pin
Stefan Troschuetz19-May-06 6:34
Stefan Troschuetz19-May-06 6:34 
Questiona question about messagebox ? Pin
cmpeng3419-May-06 4:39
cmpeng3419-May-06 4:39 
AnswerRe: a question about messagebox ? Pin
mav.northwind19-May-06 5:19
mav.northwind19-May-06 5:19 
QuestionProgrammatically creating Reports using Reporting Services Pin
anderslundsgard19-May-06 4:14
anderslundsgard19-May-06 4:14 
Questionhelp printing HTML with C# to printer Pin
dpietro19-May-06 4:14
dpietro19-May-06 4:14 
AnswerRe: help printing HTML with C# to printer Pin
BoneSoft19-May-06 4:42
BoneSoft19-May-06 4:42 
GeneralRe: help printing HTML with C# to printer Pin
dpietro19-May-06 5:02
dpietro19-May-06 5:02 
Questionset a background image to my control Pin
Sasuko19-May-06 4:02
Sasuko19-May-06 4:02 
Questioncalling datagridview double click event on button click Pin
abhinish19-May-06 3:38
abhinish19-May-06 3:38 
AnswerRe: calling datagridview double click event on button click Pin
Josh Smith19-May-06 5:08
Josh Smith19-May-06 5:08 
Questionproblem in Rollback operation in deloyment project under c#.net Pin
manusharma19-May-06 3:15
manusharma19-May-06 3:15 
QuestionDisplaying Progress Pin
Rizwan Rathore19-May-06 2:39
Rizwan Rathore19-May-06 2:39 
AnswerRe: Displaying Progress Pin
MohammadAmiry19-May-06 3:26
MohammadAmiry19-May-06 3:26 
GeneralRe: Displaying Progress Pin
Rizwan Rathore19-May-06 7:45
Rizwan Rathore19-May-06 7:45 

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.