PC Review


Reply
Thread Tools Rate Thread

Cmd Button Click event not executed

 
 
LDD
Guest
Posts: n/a
 
      21st Dec 2005
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


 
Reply With Quote
 
 
 
 
Armin Zingler
Guest
Posts: n/a
 
      21st Dec 2005
"LDD" <(E-Mail Removed)> 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
 
Reply With Quote
 
LDD
Guest
Posts: n/a
 
      21st Dec 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "LDD" <(E-Mail Removed)> 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



 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      21st Dec 2005
"LDD" <(E-Mail Removed)> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When user press F5 after a button click event, the click event fires again! Max2006 Microsoft ASP .NET 2 19th Sep 2007 06:37 AM
How to fire both event button click and textchanged when button is click and text is changed Amy Microsoft ASP .NET 0 1st Jun 2006 03:33 PM
click event handler executed twice dsvick@gmail.com Microsoft ADO .NET 7 1st Feb 2006 11:29 PM
code on Click event for some buttons is not executed Galina Grechka Microsoft ASP .NET 1 14th Apr 2005 05:01 AM
Button.Init? how Do I know if click event has been fired? TextBox.TextChanged event before Button.Click in a CompositeCustomControl. jorge Microsoft ASP .NET 2 26th May 2004 12:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 PM.