VB.Net Handles keyword for event handler goes away,dissapears

T

thomas

annoyingly, every so often after a compile, my code will cease to work because the Handles keyword gets removed from the end of the method.
ex: Private Sub buttonMakeTransfer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonMakeTransfer.Click
....
might become
Private Sub buttonMakeTransfer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
....
this happens infrequently and i can't pinpoint the cause.
thanks for your help!
thomas

___
Newsgroups brought to you courtesy of www.dotnetjohn.com
 
S

Steve C. Orr [MVP, MCSD]

It happens to me sometimes when I cut and paste a control.
I agree it's annoying.
 
K

Ken Cox [Microsoft MVP]

Something to try...

When you add a control or markup in HTML view, make sure you save the page
before switching to the code behind.
 

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,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top