Event handlers keep getting unregistered

  • Thread starter Steve Lewin-Berlin
  • Start date
S

Steve Lewin-Berlin

For some reason (and I wish I could say specifically
when) studio.net keeps dis-associating my event handlers
with their events. In a recent frsutrating example, my
(C#) page_load routine wasn't getting called. I used the
gui in VS.net to associate the routine with the Load
event, but then the code for one of my buttons wasn't
running. When I re-associated the OnClick routine,
vs.net deleted the page_load connection. The routine
itself isn't deleted, but the line in InitializeComponent:

this.Load += new System.EventHandler(this.Page_Load);

just keeps getting deleted.

Help!
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top