I've just install VS 2005 Team Suite on my laptop, but I've been using it on
my desktop since it came out and for new development... but I have not
upgraded my 2003 projects to 2005 until today.
Now I'm upgrading my laptop, which is were I do demo runs of the software.
I had not upgraded some of t
ark Brackett
Sent: Wednesday, February 14, 2007 3:56 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Determining if an event has been assigned
a delegate...
For VB.NET (which the OP seemed to be in), I haven't found an easy
analog to C#'s "something == null"
lsight.com/mike
>
>
> > -Original Message-
> > From: Discussion of advanced .NET topics.
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > gregory young
> > Sent: Wednesday, February 14, 2007 1:45 PM
> > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> > Subj
5 PM
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: Re: [ADVANCED-DOTNET] Determining if an event has
> been assigned a delegate...
>
> Here is a version that works from outside of the class ...
>
>
> static void PrintListenners(object o, string _EventName)
gle for GetInvocationList
> > that should point you in the right direction
> >
> >
> > -----Original Message-
> > From: Discussion of advanced .NET topics.
> > [mailto:[EMAIL PROTECTED] Behalf Of Mike
Andrews
> > Sent: Wednesday, February 14, 2007 2:52
iscussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] On Behalf Of
> gregory young
> Sent: Wednesday, February 14, 2007 1:45 PM
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: Re: [ADVANCED-DOTNET] Determining if an event has
> been assigned a delegate...
>
>
As per Phil's post, a Delegate instance has a GetInvocationList() method
that returns an array of Delegates, one for each list. This is assuming you
have a delegate instance.
I've had other times when I would have like to know if there listeners for a
particular event.
My original problem point
> and the compiler tells me:
> The event 'System.Web.UI.WebControls.CheckBox.CheckedChanged' can only
> appear on the left hand side of += or -=
>
> What might I be doing incorrectly here?
> Is what I want to do even possible?
What are you trying to accomplish functionally? You can't really do wh
On 2/14/07, Mike Andrews <[EMAIL PROTECTED]> wrote:
...and the compiler tells me:
The event 'System.Web.UI.WebControls.CheckBox.CheckedChanged' can only
appear on the left hand side of += or -=
The problem is that the event name is *not* a delegate. The event is
*backed* by a delegate, but t
bject: [ADVANCED-DOTNET] Determining if an event has been assigned a
delegate...
Guys,
Do any of you know if it's possible to determine if an event for an object has
been assigned a delegate?
Example:
Dim cb As New CheckBox()
cb.Name = "MyCheckBox"
AddHandler(cb.CheckChanged, Ad
@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Determining if an event has been assigned a
delegate...
Guys,
Do any of you know if it's possible to determine if an event for an object has
been assigned a delegate?
Example:
Dim cb As New CheckBox()
cb.Name = "MyCheckBox"
AddHandler(
ary 14, 2007 2:52 PM
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: [ADVANCED-DOTNET] Determining if an event has been assigned a
> delegate...
>
>
> Guys,
>
> Do any of you know if it's possible to determine if an event for an object
> has been assigned a delegate
: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Mike Andrews
Sent: Wednesday, February 14, 2007 2:52 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Determining if an event has been assigned a
delegate...
Guys,
Do any of you know if it's possible t
-DOTNET] Determining if an event has been assigned a
delegate...
Guys,
Do any of you know if it's possible to determine if an event for an object
has been assigned a delegate?
Example:
Dim cb As New CheckBox()
cb.Name = "MyCheckBox"
AddHandler(cb.CheckChanged, AddressOf CheckChange
Guys,
Do any of you know if it's possible to determine if an event for an object
has been assigned a delegate?
Example:
Dim cb As New CheckBox()
cb.Name = "MyCheckBox"
AddHandler(cb.CheckChanged, AddressOf CheckChanged)
...
Public Sub CheckChanged(Object sender, EventArgs e)
...
End Sub
Is i
15 matches
Mail list logo