Click here to Skip to main content
15,894,907 members
Home / Discussions / C#
   

C#

 
AnswerRe: Set Standard Input to a File Stream Pin
Judah Gabriel Himango8-Jul-08 16:59
sponsorJudah Gabriel Himango8-Jul-08 16:59 
GeneralRe: Set Standard Input to a File Stream Pin
skatzteyp8-Jul-08 17:23
skatzteyp8-Jul-08 17:23 
GeneralRe: Set Standard Input to a File Stream Pin
leppie8-Jul-08 20:47
leppie8-Jul-08 20:47 
GeneralRe: Set Standard Input to a File Stream Pin
skatzteyp8-Jul-08 21:25
skatzteyp8-Jul-08 21:25 
GeneralRe: Set Standard Input to a File Stream Pin
leppie8-Jul-08 22:34
leppie8-Jul-08 22:34 
GeneralRe: Set Standard Input to a File Stream Pin
skatzteyp8-Jul-08 22:39
skatzteyp8-Jul-08 22:39 
QuestionNuclear reactor meltdown immenent, delegates and events. Pin
MAW308-Jul-08 15:15
MAW308-Jul-08 15:15 
AnswerRe: Nuclear reactor meltdown immenent, delegates and events. Pin
Judah Gabriel Himango8-Jul-08 16:10
sponsorJudah Gabriel Himango8-Jul-08 16:10 
MAW30 wrote:
Do All Delegates need to be instantiated in the Main menu


No. Delegates can be declared in classes or in namespaces.

FWIW, in the latest version of .NET, you don't really need to define your own delegates anymore because of System.Func and System.Action. For example, you can replace your DelegateReactorMessage with Action<string></string>:

Old code:

public delegate void DelegateReactorMessage(String message);
...
public partial class FormStartReactor : Form
{
   static FormReactor FR = new FormReactor();
   DelegateReactorMessage delegateReactorMessage = new DelegateReactorMessage(FR.ReactorMessage);
   string message;

   public FormStartReactor()
   {
      InitializeComponent();
   }
}


New code:

public partial class FormStartReactor : Form
{
   static FormReactor FR = new FormReactor();
   Action<string> delegateReactorMessage = FR.ReactorMessage;
   string message;

   public FormStartReactor()
   {
      InitializeComponent();
   }
}






GeneralRe: Nuclear reactor meltdown immenent, delegates and events. Pin
MAW308-Jul-08 17:14
MAW308-Jul-08 17:14 
GeneralRe: Nuclear reactor meltdown immenent, delegates and events. Pin
N a v a n e e t h8-Jul-08 22:47
N a v a n e e t h8-Jul-08 22:47 
QuestionHi Pin
Member 39180288-Jul-08 13:18
Member 39180288-Jul-08 13:18 
AnswerRe: Hi Pin
DaveyM698-Jul-08 13:45
professionalDaveyM698-Jul-08 13:45 
AnswerRe: Hi Pin
Christian Graus8-Jul-08 14:27
protectorChristian Graus8-Jul-08 14:27 
GeneralRe: Hi Pin
Paul Conrad8-Jul-08 15:36
professionalPaul Conrad8-Jul-08 15:36 
AnswerRe: Hi Pin
Alan Balkany9-Jul-08 5:01
Alan Balkany9-Jul-08 5:01 
Questionrun some event after the form has been loaded Pin
netJP12L8-Jul-08 10:09
netJP12L8-Jul-08 10:09 
AnswerRe: run some event after the form has been loaded Pin
Gareth H8-Jul-08 10:24
Gareth H8-Jul-08 10:24 
GeneralRe: run some event after the form has been loaded Pin
netJP12L8-Jul-08 10:54
netJP12L8-Jul-08 10:54 
GeneralRe: run some event after the form has been loaded Pin
DaveyM698-Jul-08 10:59
professionalDaveyM698-Jul-08 10:59 
AnswerRe: run some event after the form has been loaded Pin
PIEBALDconsult8-Jul-08 10:51
mvePIEBALDconsult8-Jul-08 10:51 
Questionloading the header of document file Pin
Miss_hacker8-Jul-08 10:02
Miss_hacker8-Jul-08 10:02 
AnswerRe: loading the header of document file Pin
Nitrus8-Jul-08 10:20
Nitrus8-Jul-08 10:20 
JokeRe: loading the header of document file Pin
PIEBALDconsult8-Jul-08 10:57
mvePIEBALDconsult8-Jul-08 10:57 
GeneralRe: loading the header of document file Pin
leppie8-Jul-08 20:50
leppie8-Jul-08 20:50 
JokeRe: loading the header of document file Pin
PIEBALDconsult9-Jul-08 5:04
mvePIEBALDconsult9-Jul-08 5:04 

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.