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 3 1616
"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
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*******@free net.de> wrote in message
news:Oq******** *****@TK2MSFTNG P10.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
"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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 up with the yes/No option ok. My
problem or question is: How do I determine which button was pressed? Below
are the 2 routines I’m using.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles...
|
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 that I add a checkbox with
an autopostback to handle the checkchanged event. So I did. Upon
recompilation, I find in testing that the buttons on the page do not cause
their button.click events to be handled. The buttons still cause a postback,
but...
|
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 footer(textbox) is
displayed in the dg which acts like a new row addition. the 'save'
button corresponds to the footer textbox and hence triggers the
itemcommand event on a save and the logic to add it as a row to the dg
goes in there.
Now, I...
|
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 button that signals once user
is done to do an autopostback. How can I do this?
Thanks,
JJ
|
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 frustration, the eventhandler does not get executed
everytime I click the button. I have to click the button twice at times to
make sure that the event handler is being called. Why is the control behaving
in this way? This problem is not specific for a...
| |
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 the click from passing through
to the button.
Any help or suggestions much appreciated.
Charles
|
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 day. It worked wonderfully,
but it was in C# So I converted it to VB with
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx
It got upset about private and so I changed those to protected
|
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 submit button
to submit a form that contains one or two Mileposts:
1) If a Milepost range larger than 5 miles is entered, I would
like to
pop up a confirmation box to confirm the range.
|
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 on btnOk, the program makes some confirm
operations and closes the form.
When the user clicks on btnCancel, the program makes some cancel
operations and closes the form.
My problem is that, when the user clicks on the "X" button of the
form...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |