Hello all,
This is a question about something I've run across more than once in Visual
Studio (2005).
For example, yesterday I worked on an application (vb.net) and everything
seemed to be behaving properly.
This morning, after opening up and running the app. I found the code
belonging to the a button click event was not firing. After putting a
breakpoint on the button click event and running the application, the
breakpoint never got hit.
The remedy was to copy the code inside the click event to notepad, delete
the code for the button click event, recreate the sub for the button click
event, and copy the code from notepad into the sub.
The same application had a similar problem with code in the form_load event,
recreate it, and it works.
I make sure to save my work before shutting down. Am I doing something
wrong? This is starting to become a nuisance.
Thanks in advance for any replies.
Dave M. 4 881
"davem" <da***@nexcortech.comschrieb
Hello all,
This is a question about something I've run across more than once in
Visual Studio (2005).
For example, yesterday I worked on an application (vb.net) and
everything seemed to be behaving properly.
This morning, after opening up and running the app. I found the code
belonging to the a button click event was not firing. After
putting a breakpoint on the button click event and running the
application, the breakpoint never got hit.
The remedy was to copy the code inside the click event to notepad,
delete the code for the button click event, recreate the sub for
the button click event, and copy the code from notepad into the sub.
The same application had a similar problem with code in the
form_load event, recreate it, and it works.
I make sure to save my work before shutting down. Am I doing
something wrong? This is starting to become a nuisance.
Thanks in advance for any replies.
Dave M.
I can't say it for the form_load event, but for the controls, if you
cut&paste a control, maybe from one container on the Form to another
one, the "Handles" clause is removed after cutting the control. Maybe
this happened in this case. Pasting doesn't put "Handles" in again.
Armin
Davem,
Make sure that all those methods does have handles for the
events raised by that control.
If you are not aware, in case of VB.Net events are handle through the
handle. Name of the method does not have much importance.
Mayur H Chauhan
"Armin Zingler" <az*******@freenet.dewrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
"davem" <da***@nexcortech.comschrieb
>Hello all,
This is a question about something I've run across more than once in Visual Studio (2005).
For example, yesterday I worked on an application (vb.net) and everything seemed to be behaving properly.
This morning, after opening up and running the app. I found the code belonging to the a button click event was not firing. After putting a breakpoint on the button click event and running the application, the breakpoint never got hit.
The remedy was to copy the code inside the click event to notepad, delete the code for the button click event, recreate the sub for the button click event, and copy the code from notepad into the sub.
The same application had a similar problem with code in the form_load event, recreate it, and it works.
I make sure to save my work before shutting down. Am I doing something wrong? This is starting to become a nuisance.
Thanks in advance for any replies.
Dave M.
I can't say it for the form_load event, but for the controls, if you
cut&paste a control, maybe from one container on the Form to another
one, the "Handles" clause is removed after cutting the control. Maybe this
happened in this case. Pasting doesn't put "Handles" in again.
Armin
I had the same thing happen to me last week. I found that any change I made
to the code of a form, after saving and executing, it removed the Handles
Button1.Click for that method. Weirdly, if I kept the code that contains
the "Handles Button1.Click" in view so I could see it, save then execute, it
would not be removed.
Tony K.
"Mayur H Chauhan" <ma***@orioninc.comwrote in message
news:eA**************@TK2MSFTNGP02.phx.gbl...
Davem,
Make sure that all those methods does have handles for the
events raised by that control.
If you are not aware, in case of VB.Net events are handle through the
handle. Name of the method does not have much importance.
Mayur H Chauhan
"Armin Zingler" <az*******@freenet.dewrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>"davem" <da***@nexcortech.comschrieb
>>Hello all,
This is a question about something I've run across more than once in Visual Studio (2005).
For example, yesterday I worked on an application (vb.net) and everything seemed to be behaving properly.
This morning, after opening up and running the app. I found the code belonging to the a button click event was not firing. After putting a breakpoint on the button click event and running the application, the breakpoint never got hit.
The remedy was to copy the code inside the click event to notepad, delete the code for the button click event, recreate the sub for the button click event, and copy the code from notepad into the sub.
The same application had a similar problem with code in the form_load event, recreate it, and it works.
I make sure to save my work before shutting down. Am I doing something wrong? This is starting to become a nuisance.
Thanks in advance for any replies.
Dave M.
I can't say it for the form_load event, but for the controls, if you cut&paste a control, maybe from one container on the Form to another one, the "Handles" clause is removed after cutting the control. Maybe this happened in this case. Pasting doesn't put "Handles" in again.
Armin
On May 13, 11:35 pm, "davem" <da...@nexcortech.comwrote:
Hello all,
This is a question about something I've run across more than once in Visual
Studio (2005).
For example, yesterday I worked on an application (vb.net) and everything
seemed to be behaving properly.
This morning, after opening up and running the app. I found the code
belonging to the a button click event was not firing. After putting a
breakpoint on the button click event and running the application, the
breakpoint never got hit.
The remedy was to copy the code inside the click event to notepad, delete
the code for the button click event, recreate the sub for the button click
event, and copy the code from notepad into the sub.
The same application had a similar problem with code in the form_load event,
recreate it, and it works.
I make sure to save my work before shutting down. Am I doing something
wrong? This is starting to become a nuisance.
Thanks in advance for any replies.
Dave M.
Dave,
Similar things happen when particular code piece of event wasn't
present such as "Handles" clause. And also make sure, event's
signature matches with the event, however you'll be noticed by IDE if
it doesn't.
Thanks,
Onur This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: eScrewDotCom |
last post by:
eScrew
Welcome to eScrew!
eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew
story if you promise eScrew to consider eScrew story as joke. eScrew
story is very funny. eScrew...
|
by: Brandon J. Van Every |
last post by:
What's better about Ruby than Python? I'm sure there's something. What is
it?
This is not a troll. I'm language shopping and I want people's answers. I
don't know beans about Ruby or have...
|
by: eScrewDotCom |
last post by:
eScrew
Welcome to eScrew!
eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew
story if you promise eScrew to consider eScrew story as joke. eScrew
story is very funny. eScrew...
|
by: Sarah Tanembaum |
last post by:
Beside its an opensource and supported by community, what's the fundamental
differences between PostgreSQL and those high-price commercial database (and
some are bloated such as Oracle) from...
|
by: eScrewDotCom |
last post by:
www.eScrew.com
eScrew
Welcome to eScrew!
eScrew is eScrew and this is eScrew story. eScrew will tell you eScrew
story if you promise eScrew to consider eScrew story as joke. eScrew
story is...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |