D
dbuchanan
Hello,
I can find no reason for this code to run twice. Can you help me?
It may have something to do with it being a overrides sub but stepping
through during debug does *not* bear this out.
In the base class form...
\\
Protected Overridable Sub btnInsertCmptProfile_Click(ByVal sender As
System.Object, _
ByVal e As System.EventArgs) Handles btnInsertCmptProfile.Click
Throw New NotImplementedException
End Sub
//
In the derived form...
\\
Protected Overrides Sub btnInsertCmptProfile_Click(ByVal sender As
System.Object, _
ByVal e As System.EventArgs) Handles btnInsertCmptProfile.Click
'Get profiledata from master
Call InsertCmptProfile()
'Creates two new row objects in code and saves them to the database
Call InsertValveForCylinder()
'Retreive new and current data
Call ClearAndReloadForm()
End Sub '<<(stepping through in debug mode) the code from here returns
to the top of this Sub and starts over. Why?
//
While stepping through the code I discovered that it just runs the
derived code block twice. Why? What is the correct why to make it run
once?
Thank you,
dbuchanan
I can find no reason for this code to run twice. Can you help me?
It may have something to do with it being a overrides sub but stepping
through during debug does *not* bear this out.
In the base class form...
\\
Protected Overridable Sub btnInsertCmptProfile_Click(ByVal sender As
System.Object, _
ByVal e As System.EventArgs) Handles btnInsertCmptProfile.Click
Throw New NotImplementedException
End Sub
//
In the derived form...
\\
Protected Overrides Sub btnInsertCmptProfile_Click(ByVal sender As
System.Object, _
ByVal e As System.EventArgs) Handles btnInsertCmptProfile.Click
'Get profiledata from master
Call InsertCmptProfile()
'Creates two new row objects in code and saves them to the database
Call InsertValveForCylinder()
'Retreive new and current data
Call ClearAndReloadForm()
End Sub '<<(stepping through in debug mode) the code from here returns
to the top of this Sub and starts over. Why?
//
While stepping through the code I discovered that it just runs the
derived code block twice. Why? What is the correct why to make it run
once?
Thank you,
dbuchanan