Click here to Skip to main content
15,885,546 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: How can i access event of other class Pin
Naveed72730-Apr-08 21:56
Naveed72730-Apr-08 21:56 
GeneralRe: How can i access event of other class Pin
Razvan Dimescu1-May-08 7:21
Razvan Dimescu1-May-08 7:21 
GeneralCapture Http POST data from IE Pin
kafeel27-Apr-08 20:51
kafeel27-Apr-08 20:51 
GeneralTemporary DLL files Pin
Ahmet GULBAY27-Apr-08 20:47
Ahmet GULBAY27-Apr-08 20:47 
GeneralRe: Temporary DLL files Pin
Christian Graus27-Apr-08 21:00
protectorChristian Graus27-Apr-08 21:00 
GeneralRe: Temporary DLL files Pin
Ahmet GULBAY27-Apr-08 21:16
Ahmet GULBAY27-Apr-08 21:16 
GeneralThreadPool Pin
George_George27-Apr-08 19:40
George_George27-Apr-08 19:40 
GeneralRe: ThreadPool Pin
Zoltan Balazs27-Apr-08 21:48
Zoltan Balazs27-Apr-08 21:48 
GeneralRe: ThreadPool Pin
George_George27-Apr-08 23:30
George_George27-Apr-08 23:30 
GeneralRe: ThreadPool Pin
Zoltan Balazs28-Apr-08 1:29
Zoltan Balazs28-Apr-08 1:29 
GeneralRe: ThreadPool Pin
George_George28-Apr-08 1:43
George_George28-Apr-08 1:43 
GeneralRe: ThreadPool Pin
Zoltan Balazs28-Apr-08 2:49
Zoltan Balazs28-Apr-08 2:49 
GeneralRe: ThreadPool Pin
George_George28-Apr-08 3:50
George_George28-Apr-08 3:50 
GeneralRe: ThreadPool Pin
Zoltan Balazs28-Apr-08 4:29
Zoltan Balazs28-Apr-08 4:29 

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.