473,386 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Event handlers disappear

Vik
Often during development, some event handlers disappear from the code after
making changes to the controls in design view.
Why does this happen?

Thanks.
Jun 14 '06 #1
3 1637
It's a bug in VS.
I had it happening on one page. The only remedy was to delete that page and
redo it.

PS: Save the HTML and Code in notepad first so you do not have to retype it.

George.
"Vik" <viktorum@==yahoo.com==> wrote in message
news:em*************@TK2MSFTNGP05.phx.gbl...
Often during development, some event handlers disappear from the code
after making changes to the controls in design view.
Why does this happen?

Thanks.

Jun 15 '06 #2
"George Ter-Saakov" <gt****@cardone.com> wrote in message
news:ek**************@TK2MSFTNGP03.phx.gbl...
It's a bug in VS.


And one of the most annoying!

Luckily, it's fixed in v2
Jun 15 '06 #3
Vik
Why do you need do delete the page? I just double-click the control and the
event handler (Handles ... in VB) is restored. Are we talking about the same
things?

Vik

"George Ter-Saakov" <gt****@cardone.com> wrote in message
news:ek**************@TK2MSFTNGP03.phx.gbl...
It's a bug in VS.
I had it happening on one page. The only remedy was to delete that page
and redo it.

PS: Save the HTML and Code in notepad first so you do not have to retype
it.

George.
"Vik" <viktorum@==yahoo.com==> wrote in message
news:em*************@TK2MSFTNGP05.phx.gbl...
Often during development, some event handlers disappear from the code
after making changes to the controls in design view.
Why does this happen?

Thanks.


Jun 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
8
by: Dennis C. Drumm | last post by:
I have a class derived from a SortedList called SystemList that contains a list of objects indexed with a string value. The definition of the objects contained in the SortedList have a boolean...
0
by: Edward Bills | last post by:
Hello, I have an application that is currently running fine on IIS 5 in ASP.Net. When I install it on an IIS 6 server the datagrids disappear when I click any command that causes a postback. I...
13
by: Charles Law | last post by:
Mr "yEaH rIgHt" posted the following link about a week ago in answer to my question about removing event handlers. > http://www.vbinfozine.com/t_bindevt.shtml Following on from that post, the...
12
by: The One We Call 'Dave' | last post by:
Hi, Various custom controls in my WinForms application register for the 'Application.Idle' event on load, and unregister on dispose. To avoid memory leaks, it's essential that I remember to...
16
by: Hamed | last post by:
Hello I am developing a utility to be reused in other programs. It I have an object of type Control (a TextBox, ComboBox, etc.) that other programmers use it in applications. they may set some...
14
by: Hamed | last post by:
Hello It seems that I should implement ICloneable to implement my own clone object. the critical point for me is to make a control object based on another control object that all of its event...
3
by: jm | last post by:
>From a C. Petzold book I have Programming Windows C#. It's a little old now, but anyway, it has on page 71 (shortened): form.Paint += new PaintEventHandler(MyPaintHandler); static void...
5
by: jaysonnward | last post by:
Hello All: I've recently been recreating some 'dropdown menus' for a website I manage. I'm writing all my event handlers into my .js file. I've got the coding to work in Firefox, but the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.