Click here to Skip to main content
14,921,476 members
Home / Discussions / C#
   

C#

 
AnswerRe: Select particular types tool and then change their properties at a time,How? Pin
Christian Graus9-Jul-08 8:39
protectorChristian Graus9-Jul-08 8:39 
QuestionRe: Select particular types tool and then change their properties at a time,How? Pin
zeeShan anSari9-Jul-08 8:56
MemberzeeShan anSari9-Jul-08 8:56 
AnswerRe: Select particular types tool and then change their properties at a time,How? Pin
hammerstein059-Jul-08 9:00
Memberhammerstein059-Jul-08 9:00 
QuestionRe: Select particular types tool and then change their properties at a time,How? Pin
zeeShan anSari9-Jul-08 9:08
MemberzeeShan anSari9-Jul-08 9:08 
AnswerRe: Select particular types tool and then change their properties at a time,How? Pin
hammerstein059-Jul-08 9:12
Memberhammerstein059-Jul-08 9:12 
GeneralRe: Select particular types tool and then change their properties at a time,How? Pin
zeeShan anSari9-Jul-08 9:19
MemberzeeShan anSari9-Jul-08 9:19 
Question[Message Deleted] Pin
MAW309-Jul-08 7:53
MemberMAW309-Jul-08 7:53 
AnswerRe: Message insertion to ListBox from another class using Delegates and Events Pin
Christian Graus9-Jul-08 8:16
protectorChristian Graus9-Jul-08 8:16 
"public void DisplayMessage(Object myReactor, MeltdownEventArgs myMEA)
{
//FormReactor FR = new FormReactor();
String message = myMEA.Message;
delegateReactorMessage(FR.listBoxReactor, message);
}"

First, your delegate doesn't need to conform to the object/eventargs model, it can have any signature.

Second, it looks like you're trying to pass the listbox to the delegate. Why ? That misses the whole point. The point is, your delegate method should fire in the scope of the listbox, and the code to work with the listbox should run locally. If you're going to pass the listbox, the code could be anywhere, so why use delegates ?

Christian Graus

No longer a Microsoft MVP, but still happy to answer your questions.

GeneralRe: Message insertion to ListBox from another class using Delegates and Events Pin
MAW309-Jul-08 8:46
MemberMAW309-Jul-08 8:46 
GeneralRe: Message insertion to ListBox from another class using Delegates and Events Pin
Christian Graus9-Jul-08 9:35
protectorChristian Graus9-Jul-08 9:35 
GeneralRe: Message insertion to ListBox from another class using Delegates and Events Pin
MAW309-Jul-08 9:49
MemberMAW309-Jul-08 9:49 
QuestionUnlimited List Pin
Saksida Bojan9-Jul-08 7:35
MemberSaksida Bojan9-Jul-08 7:35 
AnswerRe: Unlimited List Pin
Christian Graus9-Jul-08 7:39
protectorChristian Graus9-Jul-08 7:39 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 7:44
MemberSaksida Bojan9-Jul-08 7:44 
GeneralRe: Unlimited List Pin
User 66589-Jul-08 7:55
MemberUser 66589-Jul-08 7:55 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 8:16
MemberSaksida Bojan9-Jul-08 8:16 
GeneralRe: Unlimited List Pin
User 66589-Jul-08 8:53
MemberUser 66589-Jul-08 8:53 
GeneralRe: Unlimited List Pin
Christian Graus9-Jul-08 8:13
protectorChristian Graus9-Jul-08 8:13 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 8:18
MemberSaksida Bojan9-Jul-08 8:18 
GeneralRe: Unlimited List Pin
Christian Graus9-Jul-08 8:40
protectorChristian Graus9-Jul-08 8:40 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 8:56
MemberSaksida Bojan9-Jul-08 8:56 
GeneralRe: Unlimited List Pin
#realJSOP9-Jul-08 9:12
mva#realJSOP9-Jul-08 9:12 
GeneralRe: Unlimited List Pin
Saksida Bojan9-Jul-08 9:21
MemberSaksida Bojan9-Jul-08 9:21 
GeneralRe: Unlimited List Pin
Dave Kreskowiak9-Jul-08 10:15
mveDave Kreskowiak9-Jul-08 10:15 
GeneralRe: Unlimited List Pin
Saksida Bojan10-Jul-08 8:31
MemberSaksida Bojan10-Jul-08 8:31 

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.