Residual code on new event create

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

Guest

I created a new command button, went to the event tab, selected On-click, and
created a new event procedure. When VB editor opened up, the code from the
LAST button I dealt with was displayed. Why is that? Shouldnt' it be a
blank event on a brand new control?
 
Traci said:
I created a new command button, went to the event tab, selected On-click, and
created a new event procedure. When VB editor opened up, the code from the
LAST button I dealt with was displayed. Why is that? Shouldnt' it be a
blank event on a brand new control?


The code is "connected" to the control by the name of the
control.

Code behind a control is not removed when the control is
deleted.

If that's not you situation, I would start to suspect some
kind of corruption.
 
Back
Top