Click here to Skip to main content
15,891,633 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cannot pass String Arrays as arguments to delegates?? Pin
Vikram A Punathambekar27-Apr-08 23:44
Vikram A Punathambekar27-Apr-08 23:44 
GeneralRe: Cannot pass String Arrays as arguments to delegates?? Pin
Anthony Mushrow28-Apr-08 1:02
professionalAnthony Mushrow28-Apr-08 1:02 
GeneralRe: Cannot pass String Arrays as arguments to delegates?? Pin
ptr2void28-Apr-08 1:24
ptr2void28-Apr-08 1:24 
QuestionOpening a sub form Pin
M. J. Jaya Chitra27-Apr-08 22:49
M. J. Jaya Chitra27-Apr-08 22:49 
GeneralRe: Opening a sub form Pin
N a v a n e e t h27-Apr-08 23:08
N a v a n e e t h27-Apr-08 23:08 
GeneralRe: Opening a sub form Pin
Bert delaVega29-Apr-08 5:42
Bert delaVega29-Apr-08 5:42 
QuestionLogging by appending log entries to an XML file. Pin
Zerox MXI27-Apr-08 22:41
Zerox MXI27-Apr-08 22:41 
GeneralRe: Logging by appending log entries to an XML file. Pin
N a v a n e e t h27-Apr-08 22:58
N a v a n e e t h27-Apr-08 22:58 
GeneralRe: Logging by appending log entries to an XML file. Pin
Zerox MXI27-Apr-08 23:07
Zerox MXI27-Apr-08 23:07 
GeneralRe: Logging by appending log entries to an XML file. Pin
N a v a n e e t h27-Apr-08 23:49
N a v a n e e t h27-Apr-08 23:49 
GeneralRe: Logging by appending log entries to an XML file. Pin
Vikram A Punathambekar27-Apr-08 23:47
Vikram A Punathambekar27-Apr-08 23:47 
GeneralRe: Logging by appending log entries to an XML file. Pin
Not Active28-Apr-08 3:01
mentorNot Active28-Apr-08 3:01 
QuestionAccessing executable 'metadata' (summary information) Pin
I'm a member...27-Apr-08 22:30
I'm a member...27-Apr-08 22:30 
GeneralRe: Accessing executable 'metadata' (summary information) Pin
N a v a n e e t h27-Apr-08 23:06
N a v a n e e t h27-Apr-08 23:06 
QuestionCan we discuss MONO news Here?? [modified] Pin
Ahmad Zuhd27-Apr-08 21:48
Ahmad Zuhd27-Apr-08 21:48 
AnswerRe: Can we discuss MONO news Here?? Pin
Pete O'Hanlon27-Apr-08 22:00
mvePete O'Hanlon27-Apr-08 22:00 
AnswerRe: Can we discuss MONO news Here?? Pin
#realJSOP27-Apr-08 23:50
mve#realJSOP27-Apr-08 23:50 
AnswerRe: Can we discuss MONO news Here?? Pin
Bert delaVega29-Apr-08 6:01
Bert delaVega29-Apr-08 6:01 
QuestionHow can i access event of other class Pin
Naveed72727-Apr-08 21:05
Naveed72727-Apr-08 21:05 
AnswerRe: How can i access event of other class Pin
Christian Graus27-Apr-08 21:10
protectorChristian Graus27-Apr-08 21:10 
GeneralRe: How can i access event of other class Pin
Naveed72727-Apr-08 21:18
Naveed72727-Apr-08 21:18 
AnswerRe: How can i access event of other class Pin
Razvan Dimescu27-Apr-08 22:06
Razvan Dimescu27-Apr-08 22:06 
Declare the event static in your parent class and then subscribe to that event from the main class

public class Parent
    {
        public delegate void MyDelegate(string str);
        public static event MyDelegate MYEvent;

        public void Myunc()
        {
            //trigger the event here
            if (MYEvent != null)
            {
                MYEvent("hello listeners");
            }
        }
    }
<pre>

public class MainClass
{
public MainClass()
{
//subscribe to the event from Parent Class
Parent.MYEvent += new Parent.MyDelegate(Parent_MYEvent);
}

// called when event is triggered
public void Parent_MYEvent(object sender, EventArgs e)
{

}
}



GeneralRe: How can i access event of other class Pin
J4amieC27-Apr-08 22:16
J4amieC27-Apr-08 22:16 
GeneralRe: How can i access event of other class [modified] Pin
Razvan Dimescu27-Apr-08 22:23
Razvan Dimescu27-Apr-08 22:23 
GeneralRe: How can i access event of other class Pin
Naveed72729-Apr-08 20:56
Naveed72729-Apr-08 20:56 

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.