Add event.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Are there any limits where/how you can add/remove events

Have a strange problem, I can not add an event in my method but if I place the add event in my constructor everything works fine. (my method is abstract in the base class if you have to now). The symptom is that nothing happens, the event never fires , so I don't get any errors

looks like this when I try to add the event in my method
public override bool Connect(int serialnr, string portName

..
ucom.DataReceived += new OpenNETCF.IO.Serial.Port.CommEvent(ucom_DataReceived)
..


Thanks
 
OK, it's suddenly works fine and I don't know what the problem was!? :(
 

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