Click here to Skip to main content
16,005,473 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Threading Issues... Pin
HakunaMatada26-Dec-05 17:55
HakunaMatada26-Dec-05 17:55 
GeneralRe: Threading Issues... Pin
S. Senthil Kumar26-Dec-05 19:03
S. Senthil Kumar26-Dec-05 19:03 
QuestionWhy is a size of MonthCalendar control changed when being in other machine? Pin
Ariyasat_423-Dec-05 2:38
Ariyasat_423-Dec-05 2:38 
QuestionRead Address book Pin
ashishnagar122-Dec-05 22:14
ashishnagar122-Dec-05 22:14 
AnswerRe: Read Address book Pin
Colin Angus Mackay22-Dec-05 22:18
Colin Angus Mackay22-Dec-05 22:18 
QuestionIServiceProvider issue... Pin
Stan Shannon22-Dec-05 1:57
Stan Shannon22-Dec-05 1:57 
AnswerRe: IServiceProvider issue... Pin
Stan Shannon23-Dec-05 10:07
Stan Shannon23-Dec-05 10:07 
QuestionRaising Events. Pin
HakunaMatada22-Dec-05 0:22
HakunaMatada22-Dec-05 0:22 
I have a problem and I hope someone helps me fast... Cry | :((

Platform : Windows.
Language : C#

I have created two classes.Both these class are in a dll file The Class First is an internal class and the class Second has public functions which can be used by a client(.exe). Now the class Second contains an object of the first class.

First f = new First() ;

Also the class First raises some events which are captured by the class Second.

f.Hi += new hi() ;

Now i want, the client (.exe) to catch these events raised by the class First so what i am doing in class second is

private void hi()<br />
{<br />
RaiseHiEventforClassSecond()<br />
}


Now this event raised by Second is being caught by the client. So what is happening is

The event is being raised by First and the notification should go to client(.exe) but Second is in the middle. Also the user will not be able to make an instance of the class First in his (.exe) because First is an internal class. So Second is just passing the event from the first to client(.exe) by capturing the event and raising it again.

Now please don't ask me why I am doing this? Blush | :O Just that it is a requirement. Is my method OK or is there a better way of doing this??? Sniff | :^)

Thanks,


Bikash Rai
AnswerRe: Raising Events. Pin
Robert Rohde22-Dec-05 10:02
Robert Rohde22-Dec-05 10:02 
GeneralRe: Raising Events. Pin
HakunaMatada22-Dec-05 17:14
HakunaMatada22-Dec-05 17:14 
QuestionImport yahoo address book in .net application Pin
ashishnagar122-Dec-05 0:11
ashishnagar122-Dec-05 0:11 
AnswerRe: Import yahoo address book in .net application Pin
Colin Angus Mackay22-Dec-05 22:20
Colin Angus Mackay22-Dec-05 22:20 
AnswerRe: Import yahoo address book in .net application Pin
Dave Kreskowiak23-Dec-05 5:49
mveDave Kreskowiak23-Dec-05 5:49 
QuestionConfiguration combobox missing on the standard toolbar in whidbey beta Pin
hiraljv21-Dec-05 20:14
hiraljv21-Dec-05 20:14 
QuestionPath to default files called by program Pin
smurfy3421-Dec-05 11:14
smurfy3421-Dec-05 11:14 
AnswerRe: Path to default files called by program Pin
Dave Kreskowiak21-Dec-05 13:13
mveDave Kreskowiak21-Dec-05 13:13 
AnswerRe: Path to default files called by program Pin
HakunaMatada22-Dec-05 0:07
HakunaMatada22-Dec-05 0:07 
GeneralRe: Path to default files called by program Pin
Dave Kreskowiak22-Dec-05 5:52
mveDave Kreskowiak22-Dec-05 5:52 
GeneralRe: Path to default files called by program Pin
HakunaMatada22-Dec-05 17:12
HakunaMatada22-Dec-05 17:12 
GeneralRe: Path to default files called by program Pin
Dave Kreskowiak22-Dec-05 17:55
mveDave Kreskowiak22-Dec-05 17:55 
GeneralRe: Path to default files called by program Pin
HakunaMatada22-Dec-05 18:17
HakunaMatada22-Dec-05 18:17 
AnswerRe: Path to default files called by program Pin
HakunaMatada22-Dec-05 0:11
HakunaMatada22-Dec-05 0:11 
Questionerror LNK2028: unresolved token Pin
Lythimer21-Dec-05 2:41
Lythimer21-Dec-05 2:41 
AnswerRe: error LNK2028: unresolved token Pin
hiraljv21-Dec-05 20:21
hiraljv21-Dec-05 20:21 
GeneralRe: error LNK2028: unresolved token Pin
Lythimer22-Dec-05 9:12
Lythimer22-Dec-05 9:12 

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.