Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
Questionusing log4net with custom database logger Pin
SASS_Shooter14-May-12 5:08
SASS_Shooter14-May-12 5:08 
Questioncall a jar file from .net clr Pin
nextaxtion13-May-12 21:40
nextaxtion13-May-12 21:40 
AnswerRe: call a jar file from .net clr Pin
Pete O'Hanlon14-May-12 1:09
mvePete O'Hanlon14-May-12 1:09 
GeneralRe: call a jar file from .net clr Pin
Peter_in_278014-May-12 1:19
professionalPeter_in_278014-May-12 1:19 
GeneralRe: call a jar file from .net clr Pin
Pete O'Hanlon14-May-12 1:43
mvePete O'Hanlon14-May-12 1:43 
Questionhow can i run ~~~.aspx page without popup in c#? Pin
buffering8313-May-12 21:33
buffering8313-May-12 21:33 
AnswerRe: how can i run ~~~.aspx page without popup in c#? Pin
Nitin S14-May-12 1:28
professionalNitin S14-May-12 1:28 
GeneralRe: how can i run ~~~.aspx page without popup in c#? Pin
Sentenryu14-May-12 2:49
Sentenryu14-May-12 2:49 
GeneralRe: how can i run ~~~.aspx page without popup in c#? Pin
buffering8314-May-12 13:33
buffering8314-May-12 13:33 
QuestionStimulsoft Report WinForms in c# (vs2010) Instead CrystalReport Pin
hamed hossani12-May-12 21:40
hamed hossani12-May-12 21:40 
AnswerRe: Stimulsoft Report WinForms in c# (vs2010) Instead CrystalReport Pin
Sandeep Mewara12-May-12 23:27
mveSandeep Mewara12-May-12 23:27 
GeneralRe: Stimulsoft Report WinForms in c# (vs2010) Instead CrystalReport Pin
hamed hossani13-May-12 9:11
hamed hossani13-May-12 9:11 
QuestionQuestion about c # ffmpeg... Pin
devil185212-May-12 0:17
devil185212-May-12 0:17 
AnswerRe: Question about c # ffmpeg... Pin
Alan N12-May-12 2:27
Alan N12-May-12 2:27 
QuestionHow to transfer data between two form Pin
Promance11-May-12 20:29
Promance11-May-12 20:29 
AnswerRe: How to transfer data between two form Pin
Sandeep Mewara11-May-12 22:15
mveSandeep Mewara11-May-12 22:15 
GeneralRe: How to transfer data between two form Pin
Promance12-May-12 19:45
Promance12-May-12 19:45 
AnswerRe: How to transfer data between two form Pin
Sandeep Mewara12-May-12 20:11
mveSandeep Mewara12-May-12 20:11 
GeneralRe: How to transfer data between two form Pin
Promance13-May-12 15:04
Promance13-May-12 15:04 
AnswerRe: How to transfer data between two form Pin
DaveyM6913-May-12 6:05
professionalDaveyM6913-May-12 6:05 
GeneralRe: How to transfer data between two form Pin
Sandeep Mewara13-May-12 6:19
mveSandeep Mewara13-May-12 6:19 
GeneralRe: How to transfer data between two form Pin
Promance13-May-12 15:38
Promance13-May-12 15:38 
AnswerRe: How to transfer data between two form Pin
Bull City Rambler12-May-12 5:16
Bull City Rambler12-May-12 5:16 
GeneralRe: How to transfer data between two form Pin
OriginalGriff12-May-12 5:24
mveOriginalGriff12-May-12 5:24 
Oh, dear, oh dear.
You were doing so well, right up to the "You can store that data in a static variable in program".

What happens if there are two instances of the form, with data changing?
What happens if the data changes again?

Static is generally a bad idea, particularly when you are passing the information to another class. Either keep it local to your class instance, and let the handler pick it up from the sender parameter if it is just the latest info they need, or also create a custom EventArgs based class that you hand the changed data though with when you signal the event.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: How to transfer data between two form Pin
Bull City Rambler12-May-12 7:08
Bull City Rambler12-May-12 7:08 

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.