By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Handle how to ?

P: n/a
Hi
How to know if a control has an handle.
To be more clear, sometimes I have to remove handle using
RemoveHandler MyControl.Leave, addressOf MyControl_Leave
and use AddHandler MyControl.Leave, addressOf MyControl_Leave

But before using the AddHandler, is there a way to know if the handle is not
yet active ?

Stan


Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Maybe this will help you:

For example you habe a own Click Event:
Event Click()
Then you can get all active delegates with this:

Dim delegateItem As System.Delegate
For Each delegateItem In ClickEvent.GetInvocationList

Next
There is always a "hidden" Property "Eventname" plus the Word "Event".
See example above:

Event Click() then bame is ClickEvent

if name is KeyUp then KeyUpEvent

"Stan Sainte-Rose" <st**@cyber972.com> schrieb im Newsbeitrag
news:eb**************@TK2MSFTNGP10.phx.gbl...
Hi
How to know if a control has an handle.
To be more clear, sometimes I have to remove handle using
RemoveHandler MyControl.Leave, addressOf MyControl_Leave
and use AddHandler MyControl.Leave, addressOf MyControl_Leave

But before using the AddHandler, is there a way to know if the handle is not yet active ?

Stan


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.