473,395 Members | 1,595 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,395 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 1423
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
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...

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.