473,466 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Cmd Button Click event not executed

LDD
Hey folks

I have some interesting behaviour going in.

Inside a form, I download some data. The form is used to show the status,
and set button states etc...

I have a break point set up at one of the button click event handlers. When
the button is clicked, the application doesn't stop at the breakpoint for
the click event. Nor does it stop at any of the other breakpoints.

The strange thing is that the code seems to execute, the button states
change accordingly and then the form closes. I have breakpoints setup where
the button states get changed. They don't seem to work either.Although
before I get to that point they do work.

I am starting this process using a timer so that I can start the process
after the form loads. I'm wondering if somehow the timer (which I think is
executed on a seperate thread) is somehow messing things up.

VB.Net + VS.Net 2003

Any ideas on this one?

thanks folks

LDD
Dec 21 '05 #1
3 1598
"LDD" <la***************@gmail.com> schrieb
Hey folks

I have some interesting behaviour going in.

Inside a form, I download some data. The form is used to show the
status, and set button states etc...

I have a break point set up at one of the button click event
handlers. When the button is clicked, the application doesn't stop
at the breakpoint for the click event. Nor does it stop at any of
the other breakpoints.


Switched to Release configuration?
Armin
Dec 21 '05 #2
LDD
I haven't switched to release.

The method to change the state of the buttons gets called a few times during
the download.
The breakpoints are functional prior to me pressing the abort button.
When the abort button is pressed, the button states change and the window is
supposed to stay open. And the breakpoints should halt the application.

What does happen is that the states change, and the form closes. So the code
where the breakpoints are seem to be executing.

LDD

"Armin Zingler" <az*******@freenet.de> wrote in message
news:Oq*************@TK2MSFTNGP10.phx.gbl...
"LDD" <la***************@gmail.com> schrieb
Hey folks

I have some interesting behaviour going in.

Inside a form, I download some data. The form is used to show the
status, and set button states etc...

I have a break point set up at one of the button click event
handlers. When the button is clicked, the application doesn't stop
at the breakpoint for the click event. Nor does it stop at any of
the other breakpoints.


Switched to Release configuration?
Armin

Dec 21 '05 #3
"LDD" <la***************@gmail.com> schrieb
I haven't switched to release.

The method to change the state of the buttons gets called a few
times during the download.
The breakpoints are functional prior to me pressing the abort
button. When the abort button is pressed, the button states change
and the window is supposed to stay open. And the breakpoints should
halt the application.

What does happen is that the states change, and the form closes. So
the code where the breakpoints are seem to be executing.

If you don't "start without debugging" I don' know why the breakpoints are
not hit.

Somebody once used Ctrl+F5 to do a full compile like in VB6, but this is now
starting without attaching the debugger. Maybe you did this, too, otherwise,
sorry, I can't help here.
Armin

Dec 21 '05 #4

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

Similar topics

5
by: Logger | last post by:
Help, I’m trying to implement a confirm button on an asp.net page. I have it attached to a asp:button control. In the button1 click event I call the CreateConfirmBox subroutine. The Box comes...
0
by: Clamps | last post by:
So I have an existing webform with about seven buttons. The buttons do a variety of tasks ranging from the simple response.redirect to a database connection & update. User requirements dictated...
2
by: sri_san | last post by:
Hello group, I have a datagrid(dg) and a couple of buttons outside the dg( 'New'& 'Done'). Have a 'save' button inside the dg that responds to itemcommand event. On a 'New' button click, the...
4
by: JJ | last post by:
Hi, I need to have a button cause an autopostback. How can I do this? I have textboxs on webform that supply values for a calc but not all will get filled at any particular time. So I need a...
0
by: Diffident | last post by:
Hello All, I have an asp:button and I have tied an eventhandler to this button's click event which means that the eventhandler should be executed everytime I click the button. But to my...
24
by: Charles Law | last post by:
When I click a button I don't want the click event to fire. Is this possible? In fact, what I would really like is to be able to intercept the click event, perform some action, and then prevent...
9
by: mosscliffe | last post by:
I am sorry but I am all very new and slow at understanding all this ASP.NET2. I found some code which showed how to page with a repeater. All very excited as I had been looking for this all...
2
by: bay_dar | last post by:
Hi, I have an internal ASP.NET application that I'm are using to send e-mails out based on a single milepost or milepost range entered. I'm trying to do two things when a user clicks on the...
2
by: polocar | last post by:
Hi, suppose that you have a C# form with two buttons, that are the classical "btnOk" and "btnCancel" (besides them, of course in the form there can be many other controls). When the user clicks...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.