Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralEverything you need for email in c# here.. Pin
Member 9618-Mar-03 13:26
Member 9618-Mar-03 13:26 
GeneralRe: Everything you need for email in c# here.. Pin
jhollon13-Aug-03 5:18
jhollon13-Aug-03 5:18 
GeneralRe: Everything you need for email in c# here.. Pin
Member 9613-Aug-03 6:58
Member 9613-Aug-03 6:58 
QuestionMySQL class? Pin
zamazula18-Mar-03 13:02
zamazula18-Mar-03 13:02 
AnswerRe: MySQL class? Pin
Nathan Blomquist18-Mar-03 13:58
Nathan Blomquist18-Mar-03 13:58 
GeneralRe: MySQL class? Pin
insomnious19-Mar-03 0:41
insomnious19-Mar-03 0:41 
GeneralDB and GUI coupling Pin
bpgc18-Mar-03 12:18
bpgc18-Mar-03 12:18 
GeneralSystem ShutDown... Pin
Gogou18-Mar-03 10:54
Gogou18-Mar-03 10:54 
Hi,

In my program I need after doing some job to be able to shut down the system.
So I wrote that code:

public event SessionEndedEventHandler ShutDown;

protected virtual void OnShutDown(SessionEndedEventArgs e)
{
ShutDown(this,e);
}
and then I wanted on a button click to raise the event:

private void button1_Click(object sender, System.EventArgs e)
{
OnShutDown(new SessionEndedEventArgs(SessionEndReasons.SystemShutdown));
}

But I always get System.NullReferenceException

Anyone has an idea how to solve this problemConfused | :confused: ?

Thanx in advance

Cheers,
Gogou

GAtanasov
GeneralRe: System ShutDown... Pin
Chris Jobson19-Mar-03 10:03
Chris Jobson19-Mar-03 10:03 
GeneralDBConcurrencyException: Delete a entry in master -detail table Pin
DionChen18-Mar-03 10:17
DionChen18-Mar-03 10:17 
QuestionHow to use GetNativeVariantForObject Pin
Preben Rasmussen18-Mar-03 9:49
Preben Rasmussen18-Mar-03 9:49 
QuestionHow to retrieve a value from hidden fields in a dataGrid? Pin
zoltix18-Mar-03 7:49
zoltix18-Mar-03 7:49 
AnswerRe: How to retrieve a value from hidden fields in a dataGrid? Pin
zoltix18-Mar-03 7:51
zoltix18-Mar-03 7:51 
Questioncustom editors in property grid?? Pin
LongRange.Shooter18-Mar-03 7:00
LongRange.Shooter18-Mar-03 7:00 
AnswerRe: custom editors in property grid?? Pin
leppie18-Mar-03 9:36
leppie18-Mar-03 9:36 
GeneralRe: custom editors in property grid?? Pin
LongRange.Shooter18-Mar-03 10:31
LongRange.Shooter18-Mar-03 10:31 
GeneralRe: custom editors in property grid?? Pin
LongRange.Shooter19-Mar-03 5:39
LongRange.Shooter19-Mar-03 5:39 
GeneralRe: custom editors in property grid?? Pin
LongRange.Shooter19-Mar-03 5:53
LongRange.Shooter19-Mar-03 5:53 
QuestionDeal with DateTime like a taskmanager would do it? Pin
Chris Richner18-Mar-03 3:18
Chris Richner18-Mar-03 3:18 
AnswerRe: Deal with DateTime like a taskmanager would do it? Pin
Stephane Rodriguez.18-Mar-03 3:29
Stephane Rodriguez.18-Mar-03 3:29 
GeneralRe: Deal with DateTime like a taskmanager would do it? Pin
Chris Richner18-Mar-03 3:48
Chris Richner18-Mar-03 3:48 
AnswerRe: Deal with DateTime like a taskmanager would do it? Pin
leppie18-Mar-03 9:42
leppie18-Mar-03 9:42 
QuestionGenerate an xml file with StringWriter(UTF-8) ?? Pin
zoltix17-Mar-03 23:39
zoltix17-Mar-03 23:39 
AnswerRe: Generate an xml file with StringWriter(UTF-8) ?? Pin
Stephane Rodriguez.18-Mar-03 1:17
Stephane Rodriguez.18-Mar-03 1:17 
GeneralRe: Generate an xml file with StringWriter(UTF-8) ?? Pin
zoltix18-Mar-03 3:09
zoltix18-Mar-03 3: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.