Break point problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
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
 
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
 
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
 
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
 
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
 
Back
Top