setting an event to null.

  • Thread starter Thread starter buller
  • Start date Start date
B

buller

Hi

I want to clear all the event for my ex. formclosed.
I saw several examples on internet show that it is possible , but I get
error msg.
saying only -= and += is allowed.
frmRouteDlg.FormClosed = null;

TIA

Buller
 
buller said:
Hi

I want to clear all the event for my ex. formclosed.
I saw several examples on internet show that it is possible , but I get
error msg.
saying only -= and += is allowed.
frmRouteDlg.FormClosed = null;

It appears you can only do this if you are to author of the class. They
restrict it from outside even if you inherit. You will just need to keep
better track of which events you've attached to.

Michael
 
Buller,

I saw from the reply from Peter that I am not the only one who is curious
why you want to do what you ask.

Can you give us an idea?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top