473,406 Members | 2,259 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,406 software developers and data experts.

Break point problem

have a main form with menu control on it. I am opening various forms on
click of different menu items. Below is one the procedure I am using. I am
running my app in Debug mode.

Private Sub mnuSearch_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mnuSearch.Click
Dim frm As New frmPlanMaintain
frm.ShowDialog(Me)

If frm.DialogResult = DialogResult.OK Then
'Do something...
End If

frm.Dispose()
End Sub

I have place break point on above procedure. Now when I access the menu
option with above associated procedure, without accessing any other menu
option, it goes into break mode. But, if I access any other menu option,
prior to the one associated with above procedure, it does not go into break
mode. I am really confused. What’s going wrong? Please help.

Jul 21 '05 #1
7 1424
Job,

Without seeing the from that other meny there is no possibility to answer
that, however are you sure it is not going in a loop in that other part.

In the code you show is nothing strange, it creates a form and disposed a
form so everything will be made everytime completly new.

Cor
Private Sub mnuSearch_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mnuSearch.Click
Dim frm As New frmPlanMaintain
frm.ShowDialog(Me)

If frm.DialogResult = DialogResult.OK Then
'Do something...
End If

frm.Dispose()
End Sub

Jul 21 '05 #2
Does referring Public variable or control values from initialize form causes
any problem, as follows

Private Sub mnuSearch_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mnuSearch.Click
Dim frm As New frmPlanMaintain
frm.ShowDialog(Me)

If frm.DialogResult = DialogResult.OK Then
'Referencing Public variable, control value from frmPlanMaintain
Me.Plan_ID = frm.PlanID
Me.Client_ID = frm.txtClientID.Text
End If

frm.Dispose()
End Sub
"Cor Ligthert" wrote:
Job,

Without seeing the from that other meny there is no possibility to answer
that, however are you sure it is not going in a loop in that other part.

In the code you show is nothing strange, it creates a form and disposed a
form so everything will be made everytime completly new.

Cor
Private Sub mnuSearch_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles mnuSearch.Click
Dim frm As New frmPlanMaintain
frm.ShowDialog(Me)

If frm.DialogResult = DialogResult.OK Then
'Do something...
End If

frm.Dispose()
End Sub


Jul 21 '05 #3
Job,

What you show is as standard as standard can be.

Cor
Jul 21 '05 #4
Hi Cor,

Okay its working fine on my loptop at home, but not at work. Is there any
specifc IDE setting I am missing at work? Thanks
"Cor Ligthert" wrote:
Job,

What you show is as standard as standard can be.

Cor

Jul 21 '05 #5
Job,

The most made error people make in this is that they set there IDE in run in
"release" mode instead in "debug" mode.

Maybe did you that as well at work?

Cor
Jul 21 '05 #6
Hi Cor,

I am in Debug build. tting i am missing. I have recently installed XP SP2 at
work. Is it something to do with it?

Thanks

"Cor Ligthert" wrote:
Job,

The most made error people make in this is that they set there IDE in run in
"release" mode instead in "debug" mode.

Maybe did you that as well at work?

Cor

Jul 21 '05 #7
Job,

I really would not know it, when it works on your laptob and not on your
computer at work, I do not see that thing. You do, there should be a
difference, however not to tell from after my desktop.

Sorry,

Cor

I am in Debug build. tting i am missing. I have recently installed XP SP2 at work. Is it something to do with it?

Thanks

Jul 21 '05 #8

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

Similar topics

8
by: Doug Bell | last post by:
Hi I am trying to debug a bit of code (while learning .net) and I put in some break points. I was surprised to find that the code didn't halt. On further inspection I noticed that the Break Line...
12
by: No Such Luck | last post by:
Hi All: I'm not sure if this is the right place to ask this question, but I couldn't find a more appropriate group. This is more of a theory question regarding an algorithm implemented in C, not...
25
by: chunhui_true | last post by:
In <<expert c>>I know the break in if wich is scoped in switch is break the switch,like: switch c case 1: if(b){ break; } ...... But like this: while(a){
1
by: Jim Heavey | last post by:
I have a couple of questions about break points. I have this one ASPX page which had a breakpoint set on a particular line and I am unable to get rid of it. If I look at the line in which the...
2
by: ichor | last post by:
hi i want to add a conditional break in my vb.net code. like we could in vb6. for example if the counter = 10 then break at that point. kindly let me know if thats possible in vb.net Ichor
7
by: Job Lot | last post by:
have a main form with menu control on it. I am opening various forms on click of different menu items. Below is one the procedure I am using. I am running my app in Debug mode. Private Sub...
17
by: kevgibbo | last post by:
Hi, I'm currently having a problem where a long URL or a line of text with no spaces will break the design of a webpage, http:// blog.seoptimise.com/2007/01/how-to-add-delicious-and-digg-blog-...
26
by: Alexander Korsunsky | last post by:
Hi! I have some code that looks similar to this: -------------------------------------------- char array = "abcdefghij"; for (int i = 0; i < 10; i++) {
26
by: a.mil | last post by:
I am programming for code-speed, not for ansi or other nice-guy stuff and I encountered the following problem: When I have a for loop like this: b=b0; for (a=0,i=0;i<100;i++,b--) { if (b%i)...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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
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...

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.